[Ecls-list] Temporarily disabling the GC

Matthew Mondor mm_lists at pulsar-zone.net
Mon Jun 10 11:39:48 UTC 2013


Hello,

I believe that boehm-gc permits to temporarily disable the GC for
critical sections?

By a quick look, it seems that ECL does not export such facility right
now, but would it be nonsense to eventually allow this for use by rare
but specific code sections which should ideally execute as predictably
as possible?

I guess that custom C or FFI code could do it, but a possible reason to
provide this functionality might be for it to be friendler to the ECL
runtime than direct GC_disable()/GC_enable() calls, i.e. including
any other required implicit code (i.e.
ecl_disable_interrupts()/ecl_enable_interrupts())?

Of course, if it existed, this could be considered a "dangerous"
interface and documented as such...  SBCL and some other
implementations currently allow to temporarily disable the garbage
collector.

It's nothing urgent and I don't have a need for it right now, only food
for thought.

Thanks,
-- 
Matt




More information about the ecl-devel mailing list