Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit ee5f03c

Browse files
committed
Enabled precise collection
For testing
1 parent 9581251 commit ee5f03c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gc/config.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct Config
2626
{
2727
bool disable; // start disabled
2828
ubyte profile; // enable profiling with summary when terminating program
29-
string gc = "conservative"; // select gc implementation conservative|precise|manual
29+
string gc = "precise"; // select gc implementation conservative|precise|manual
3030

3131
size_t initReserve; // initial reserve (MB)
3232
size_t minPoolSize = 1; // initial and minimum pool size (MB)

src/gc/impl/conservative/gc.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class ConservativeGC : GC
294294
import core.internal.spinlock;
295295
static gcLock = shared(AlignedSpinLock)(SpinLock.Contention.lengthy);
296296
static bool _inFinalizer;
297-
static bool isPrecise=false;
297+
__gshared bool isPrecise=false;
298298

299299
// lock GC, throw InvalidMemoryOperationError on recursive locking during finalization
300300
static void lockNR() @nogc nothrow

0 commit comments

Comments
 (0)