guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GC + Java finalization


From: Maxime Devos
Subject: Re: GC + Java finalization
Date: Fri, 19 Nov 2021 13:15:11 +0000
User-agent: Evolution 3.38.3-1

Jonas Hahnfeld schreef op do 15-07-2021 om 20:44 [+0200]:
> +  SCM *smobs = scm_gc_malloc (sizeof(SCM) * SMOBS_COUNT, "smobs");
> +
>    int i;
>    mark_call_count = 0;
>    for (i = 0; i < SMOBS_COUNT; i++)
> -    make_x ();
> +    smobs[i] = make_x ();
>    scm_gc ();

smobs doesn't need to be protected for the whole function call,
until after the scm_gc() should be sufficient I think. 

Greetings,
Maxime




reply via email to

[Prev in Thread] Current Thread [Next in Thread]