remove name field for ARC (#20797)

* remove name field for ARC

* mistake

* improvement

* better

* typo

* fixes a pre-existing bug
This commit is contained in:
ringabout 2022-11-09 23:22:55 +08:00 • committed by GitHub
commit f11b7debf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 14 deletions

View file

@ -138,7 +138,8 @@ proc breakCycles(s: Cell; desc: PNimTypeV2) =
else:
# anyhow as a link that the produced destructor does not have to follow:
u[] = nil
cprintf("[Bug] %p %s RC %ld\n", t, desc.name, t.rc shr rcShift)
when traceCollector:
cprintf("[Bug] %p %s RC %ld\n", t, desc.name, t.rc shr rcShift)
deinit j.traceStack
proc thinout*[T](x: ref T) {.inline.} =