mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Add define value nimBurnFree which allow deallocation procedures to fill memory with 0xFF before freeing it.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user