about summary refs log tree commit diff
path: root/src/test/compile-fail/allocator-dylib-is-system.rs
AgeCommit message (Collapse)AuthorLines
2017-07-05rustc: Implement the #[global_allocator] attributeAlex Crichton-41/+0
This PR is an implementation of [RFC 1974] which specifies a new method of defining a global allocator for a program. This obsoletes the old `#![allocator]` attribute and also removes support for it. [RFC 1974]: https://github.com/rust-lang/rfcs/pull/197 The new `#[global_allocator]` attribute solves many issues encountered with the `#![allocator]` attribute such as composition and restrictions on the crate graph itself. The compiler now has much more control over the ABI of the allocator and how it's implemented, allowing much more freedom in terms of how this feature is implemented. cc #27389
2017-03-12Update usages of 'OSX' (and other old names) to 'macOS'.Corey Farwell-1/+1
As of last year with version 'Sierra', the Mac operating system is now called 'macOS'.
2016-09-30TidyBrian Anderson-1/+1
2016-09-30Adding ignore-emscripten to failing tests.Ross Schulman-0/+2
2016-03-04test: Clean up alloc_jemalloc usage in testsAlex Crichton-4/+13
Right now there's just a smattering of `// ignore-foo` platforms which is ever expanding as new ones are added. Instead switch to only running these tests on Linux/OSX and then use a guaranteed-to-work but not-as-well-tested alternative on other platforms.
2016-01-20Downgrade bundled jemalloc versionAlex Crichton-1/+1
We've been seeing a lot of timeouts in tests on the bots and investigation ended pointing to jemalloc/jemalloc#315 as the culprit. Unfortunately it looks like that doesn't seem to have a fix on the way soon, so let's temporarily downgrade back to the previous version of jemalloc we were using (where #30434 was the most recent upgrade)
2015-09-12disable jemalloc tests for openbsdSébastien Marie-0/+1
ignore severals tests under openbsd as we have disabling jemalloc under this target.
2015-09-03Fixes #27886 -- bitrig does not use jemalloc (yet)Dave Huseby-0/+1
2015-08-15test: Fix tests for MUSLAlex Crichton-0/+1
Some new allocator tests require dynamic libraries to run the full test, but dylibs aren't currently working on MUSL.
2015-08-14rustc: Allow changing the default allocatorAlex Crichton-0/+27
This commit is an implementation of [RFC 1183][rfc] which allows swapping out the default allocator on nightly Rust. No new stable surface area should be added as a part of this commit. [rfc]: https://github.com/rust-lang/rfcs/pull/1183 Two new attributes have been added to the compiler: * `#![needs_allocator]` - this is used by liballoc (and likely only liballoc) to indicate that it requires an allocator crate to be in scope. * `#![allocator]` - this is a indicator that the crate is an allocator which can satisfy the `needs_allocator` attribute above. The ABI of the allocator crate is defined to be a set of symbols that implement the standard Rust allocation/deallocation functions. The symbols are not currently checked for exhaustiveness or typechecked. There are also a number of restrictions on these crates: * An allocator crate cannot transitively depend on a crate that is flagged as needing an allocator (e.g. allocator crates can't depend on liballoc). * There can only be one explicitly linked allocator in a final image. * If no allocator is explicitly requested one will be injected on behalf of the compiler. Binaries and Rust dylibs will use jemalloc by default where available and staticlibs/other dylibs will use the system allocator by default. Two allocators are provided by the distribution by default, `alloc_system` and `alloc_jemalloc` which operate as advertised. Closes #27389