Use default alloc_error_handler for hermit
Hermit now properly separates kernel from userspace. Applications for hermit can now use Rust's default alloc_error_handler instead of calling the kernel's __rg_oom.
This commit is contained in:
parent
5f37001055
commit
8f47635254
@ -385,7 +385,7 @@ fn rt_error(layout: Layout) -> ! {
|
||||
#[cfg(all(not(no_global_oom_handling), test))]
|
||||
pub use std::alloc::handle_alloc_error;
|
||||
|
||||
#[cfg(all(not(no_global_oom_handling), not(any(target_os = "hermit", test))))]
|
||||
#[cfg(all(not(no_global_oom_handling), not(test)))]
|
||||
#[doc(hidden)]
|
||||
#[allow(unused_attributes)]
|
||||
#[unstable(feature = "alloc_internals", issue = "none")]
|
||||
|
Loading…
Reference in New Issue
Block a user