Auto merge of #92535 - Amanieu:oom_hook_unwind, r=m-ou-se

Allow unwinding from OOM hooks

This is split off from #88098 and contains just the bare minimum to allow specifying a custom OOM hook with `set_alloc_error_hook` which unwinds instead of aborting.

See #88098 for an actual command-line flag which switches the default OOM behavior to unwind instead of aborting.

Previous perf results show a negligible impact on performance.
This commit is contained in:
bors 2022-02-06 03:12:45 +00:00
commit 719b04ca99
3 changed files with 4 additions and 5 deletions

@ -1 +1 @@
Subproject commit b6b46f596a7d2523ee1acd1c00e699615849da60
Subproject commit fdc8f411ec9253d4eeb7a572b058be4f2131fd1c