Clean up GCs a bit
This commit is contained in:
parent
f7e35542e1
commit
573fa9b891
2 changed files with 13 additions and 6 deletions
|
|
@ -463,6 +463,7 @@ proc rawNewObj(typ: PNimType, size: int, gch: var TGcHeap): pointer =
|
|||
|
||||
proc newObjNoInit(typ: PNimType, size: int): pointer {.compilerRtl.} =
|
||||
result = rawNewObj(typ, size, gch)
|
||||
when defined(memProfiler): nimProfile(size)
|
||||
|
||||
proc newObj(typ: PNimType, size: int): pointer {.compilerRtl.} =
|
||||
result = rawNewObj(typ, size, gch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue