We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02ef0fb + 5ceb425 commit 0a8c3a4Copy full SHA for 0a8c3a4
1 file changed
src/vec-alloc.md
@@ -37,8 +37,8 @@ that, we'll need to use the rest of the heap APIs. These basically allow us to
37
talk directly to Rust's allocator (jemalloc by default).
38
39
We'll also need a way to handle out-of-memory (OOM) conditions. The standard
40
-library calls `std::alloc::oom()`, which in turn calls the the `oom` langitem.
41
-By default this just aborts the program by executing an illegal cpu instruction.
+library calls `std::alloc::oom()`, which in turn calls the the `oom` langitem,
+which aborts the program in a platform-specific manner.
42
The reason we abort and don't panic is because unwinding can cause allocations
43
to happen, and that seems like a bad thing to do when your allocator just came
44
back with "hey I don't have any more memory".
0 commit comments