summaryrefslogtreecommitdiff
path: root/gc_dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc_dlopen.c')
-rw-r--r--gc_dlopen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc_dlopen.c b/gc_dlopen.c
index 3e0b1a39..268cd7ca 100644
--- a/gc_dlopen.c
+++ b/gc_dlopen.c
@@ -50,6 +50,7 @@
/* But I don't know of a better solution. */
static void disable_gc_for_dlopen(void)
{
+ DCL_LOCK_STATE;
LOCK();
while (GC_incremental && GC_collection_in_progress()) {
GC_collect_a_little_inner(1000);