mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-26 05:00:28 +02:00
Hook up gc_heap_set_allocation_failure_handler
* libguile/gc.h: * libguile/gc.c (scm_gc_after_nonlocal_exit): Give it a scm_thread argument, and cause GC with whippet API. (scm_init_gc): Set alloc failure handler using Whippet API instead of BDW. (scm_oom_fn): Add heap argumnet. * libguile/eval.c (eval): * libguile/exceptions.c (scm_c_with_exception_handler): * libguile/vm.c (scm_call_n): Adapt.
This commit is contained in:
parent
25db208603
commit
23d204b5a0
5 changed files with 10 additions and 10 deletions
|
@ -1604,7 +1604,7 @@ scm_call_n (SCM proc, SCM *argv, size_t nargs)
|
|||
if (SCM_UNLIKELY (resume))
|
||||
{
|
||||
uint8_t *mcode = vp->mra_after_abort;
|
||||
scm_gc_after_nonlocal_exit ();
|
||||
scm_gc_after_nonlocal_exit (thread);
|
||||
/* Non-local return. */
|
||||
if (vp->abort_hook_enabled)
|
||||
invoke_abort_hook (thread);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue