Commit Graph

8652 Commits

Author SHA1 Message Date
Patrick Walton c245d9e980 Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"
This reverts commit f0250a23d3.
2012-03-07 16:56:45 -08:00
Patrick Walton f0250a23d3 stdlib: Stop incurring vtable dispatch costs when hashmaps are used
This required changing almost all users of hashmaps to import the hashmap interface first.

The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07 16:51:31 -08:00
Brian Anderson a9bd76b3c1 rustdoc: Implement more rules for generating internal pandoc links 2012-03-07 15:45:16 -08:00
Graydon Hoare e30611110a Register new snapshots. 2012-03-07 15:05:43 -08:00
Brian Anderson 7f66df714a rustdoc: Support #[doc(hidden)] 2012-03-07 14:50:39 -08:00
Tim Chevalier 90ac69904f Improve a type error message (avoid the word 'non-dereferenceable') 2012-03-07 14:14:34 -08:00
Niko Matsakis 5c4ffd0dd7 build libcore with --enforce-mut-vars 2012-03-07 07:47:54 -08:00
Niko Matsakis 713006c7b6 add mutability annotations to libcore 2012-03-07 07:47:50 -08:00
Niko Matsakis 674587cfe5 add option to build enforcing mutability 2012-03-07 05:58:05 -08:00
Marijn Haverbeke 7b81cd8930 Fix #1503 in a saner way
Closes #1933
2012-03-07 09:19:29 +01:00
Brian Anderson e55d7d6add rustdoc: Remove escaping pass 2012-03-06 20:31:05 -08:00
Brian Anderson e536e8a933 rustdoc: Don't escape characters between backticks 2012-03-06 20:16:53 -08:00
Brian Anderson ae5ea85c36 core: Resolve a FIXME in box::ptr_eq 2012-03-06 19:15:39 -08:00
Graydon Hoare 04e7bd6758 More UTF-16 wrapping on win32. Close #1927. 2012-03-06 18:49:08 -08:00
Brian Anderson cf8f5b7606 rustdoc: Escape HTML special characters 2012-03-06 17:46:52 -08:00
Brian Anderson 29ac3c811d rustdoc: Put brief descriptions in the indexes 2012-03-06 17:16:25 -08:00
Brian Anderson a4ff220133 rustdoc: Write links correctly for multi-page docs 2012-03-06 17:16:25 -08:00
Brian Anderson 801b02b25d rustdoc: Parallelize markdown_pass 2012-03-06 17:16:25 -08:00
Brian Anderson 513d956dce rustdoc: Run pandoc in a way that won't deadlock waiting for IO 2012-03-06 17:16:25 -08:00
Brian Anderson dc0b9f44e2 rt: Change the rust_port refcounting scheme to avoid races
Hopefully...
2012-03-06 17:14:40 -08:00
Graydon Hoare e9571850da UTF-16-ify the win32 env routines. 2012-03-06 16:03:39 -08:00
Graydon Hoare 0e3dd5a3ee Export os, libc and path from libcore. 2012-03-06 16:03:39 -08:00
Brian Anderson dea19b25c9 rustdoc: Detect when pandoc isn't available 2012-03-06 14:48:47 -08:00
Brian Anderson b8c8e43381 rustdoc: Add some more error reporting for pandoc 2012-03-06 14:48:47 -08:00
Brian Anderson fc9b55d65f rustdoc: Write a new file for each page 2012-03-06 14:48:47 -08:00
Brian Anderson fbd8a76e8a rustdoc: Add a pass to split the document into pages 2012-03-06 14:48:47 -08:00
Brian Anderson e9b5f4204a core: Remove some explicit move capture clauses 2012-03-06 13:05:03 -08:00
Brian Anderson 3c0e984449 rustdoc: Remove Google's copyright notice
There is no Google code left.
2012-03-06 11:25:27 -08:00
Brian Anderson d1c6e34e1c core: Inline a bunch of unsafe functions 2012-03-06 11:20:43 -08:00
Niko Matsakis 712dd23541 make inline enabled by default 2012-03-06 09:01:40 -08:00
Marijn Haverbeke fb61b8f262 Add a reachability checker, only export metadata for reachable items
Closes #1934
2012-03-06 17:11:30 +01:00
Marijn Haverbeke 4e4bd585cd Track all exports in exp_map
This is needed because the reachability checker needs to be able to
follow exports.

Issue #1934
2012-03-06 17:11:30 +01:00
Marijn Haverbeke 19508c7d53 Make trans pass responsible for pulling in inlined functions
This makes the logic for finding the inlinable items much easier --
they are simply pulled in lazily when encountered.
2012-03-06 14:00:21 +01:00
Marijn Haverbeke 9b88219723 Don't attach def ids to types when the type already contains the def id 2012-03-06 14:00:13 +01:00
Marijn Haverbeke cc99ce5bdd Register new snapshot 2012-03-06 13:58:32 +01:00
Brian Anderson ee991cae81 rt: Add a hack to fix a port detach bug 2012-03-05 20:02:25 -08:00
Brian Anderson 32f7818e7f etc: Add more helgrind suppressions for i686 2012-03-05 19:39:57 -08:00
Brian Anderson 958c321083 rt: Fix the atomic get_ref_count method to avoid races 2012-03-05 19:39:56 -08:00
Brian Anderson 1347d04bb0 rt: Properly block tasks while waiting for port detach 2012-03-05 19:39:56 -08:00
Brian Anderson 4c4a2320eb rt: Make rust_port_detach less contentious
It still utterly dominates some benchmarks with busy waiting, but at least it
doesn't create lock contention while doing so.
2012-03-05 19:39:56 -08:00
Brian Anderson 0a5603cb58 rt: Make linked failure less prone to deadlock
Still a mess.
2012-03-05 19:39:56 -08:00
Brian Anderson cc276fe3c9 rt: Be more precise with VALGRIND_MAKE_MEM_UNDEFINED 2012-03-05 19:39:56 -08:00
Brian Anderson c78da1e170 rt: Stop calling prepare_valgrind_stack when it's not needed 2012-03-05 19:39:56 -08:00
Brian Anderson f057f00300 rt: Simplify reap_dead_tasks 2012-03-05 19:39:56 -08:00
Brian Anderson 8efe4b8913 rt: Add an assert to the scheduler loop 2012-03-05 19:39:56 -08:00
Brian Anderson e08f46db68 rt: Move receive code into rust_port 2012-03-05 19:39:56 -08:00
Brian Anderson 77295c56c5 rt: Simplify the recv interface 2012-03-05 19:39:56 -08:00
Brian Anderson 8e0efce0da rt: Move some code from rust_port_detach into rust_port::detach 2012-03-05 19:39:56 -08:00
Brian Anderson 93fa933a19 rt: Move some locking from rust_port to rust_task 2012-03-05 19:39:56 -08:00
Brian Anderson e3ccac8ed3 rt: Renome rust_task::lock to port_lock 2012-03-05 19:39:55 -08:00