From 7ca3bea5bfd15dd960e6346eebf72422b0020d6b Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Wed, 15 Jan 2014 11:45:12 +0200 Subject: libstd: Added more #[inline] annotations and replaced uses of `libc::abort` with the intrinsic. --- src/libstd/unstable/lang.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstd/unstable') diff --git a/src/libstd/unstable/lang.rs b/src/libstd/unstable/lang.rs index e7e8cec9d5f..38c713ad7b7 100644 --- a/src/libstd/unstable/lang.rs +++ b/src/libstd/unstable/lang.rs @@ -29,6 +29,7 @@ pub fn fail_bounds_check(file: *c_char, line: size_t, index: size_t, len: size_t } #[lang="malloc"] +#[inline] pub unsafe fn local_malloc(td: *c_char, size: uintptr_t) -> *c_char { ::rt::local_heap::local_malloc(td, size) } @@ -37,6 +38,7 @@ pub unsafe fn local_malloc(td: *c_char, size: uintptr_t) -> *c_char { // inside a landing pad may corrupt the state of the exception handler. If a // problem occurs, call exit instead. #[lang="free"] +#[inline] pub unsafe fn local_free(ptr: *c_char) { ::rt::local_heap::local_free(ptr); } -- cgit 1.4.1-3-g733a5