2
0
Эх сурвалжийг харах

GC allow external define GC_MAX_MARK_THREADS (#616)

Yuxiao Mao 2 жил өмнө
parent
commit
e5ffe6342b
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      src/gc.c

+ 2 - 0
src/gc.c

@@ -87,7 +87,9 @@ static int_val gc_hash( void *ptr ) {
 #ifndef HL_THREADS
 #ifndef HL_THREADS
 #	define GC_MAX_MARK_THREADS 1
 #	define GC_MAX_MARK_THREADS 1
 #else
 #else
+#	ifndef GC_MAX_MARK_THREADS
 #	define GC_MAX_MARK_THREADS 4
 #	define GC_MAX_MARK_THREADS 4
+#	endif
 #endif
 #endif
 
 
 #define out_of_memory(reason)		hl_fatal("Out of Memory (" reason ")")
 #define out_of_memory(reason)		hl_fatal("Out of Memory (" reason ")")