Removed old note about pointer tagging
This commit is contained in:
parent
cd853bb140
commit
dc195409c9
|
@ -114,11 +114,7 @@ proc collect*(self: var PeonVM)
|
||||||
|
|
||||||
proc reallocate*(self: var PeonVM, p: pointer, oldSize: int, newSize: int): pointer =
|
proc reallocate*(self: var PeonVM, p: pointer, oldSize: int, newSize: int): pointer =
|
||||||
## Simple wrapper around realloc with
|
## Simple wrapper around realloc with
|
||||||
## built-in garbage collection. Callers
|
## built-in garbage collection
|
||||||
## should keep in mind that the returned
|
|
||||||
## pointer is tagged (bit 63 is set to 1)
|
|
||||||
## and should be passed to untag() before
|
|
||||||
## being dereferenced or otherwise used
|
|
||||||
self.gc.bytesAllocated.current += newSize - oldSize
|
self.gc.bytesAllocated.current += newSize - oldSize
|
||||||
try:
|
try:
|
||||||
when debugMem:
|
when debugMem:
|
||||||
|
|
Loading…
Reference in New Issue