Add define value nimBurnFree which allow deallocation procedures to fill memory with 0xFF before freeing it.

This commit is contained in:
cheatfate
2016-09-20 17:34:36 +03:00
parent 09651bec5e
commit f0ea9447ce

View File

@@ -21,7 +21,7 @@ const
alwaysGC = defined(fulldebug) # collect after every memory
# allocation (for debugging)
leakDetector = false
overwriteFree = false
overwriteFree = defined(nimBurnFree) # overwrite memory with 0xFF before free
trackAllocationSource = leakDetector
cycleGC = true # (de)activate the cycle GC