TlSF Alloctor: use less memory for --gc:arc (#13280)
This commit is contained in:
parent
84e8477b90
commit
be795bbf1a
3 changed files with 103 additions and 80 deletions
|
|
@ -122,7 +122,7 @@ proc nimAsgnStrV2(a: var NimStringV2, b: NimStringV2) {.compilerRtl.} =
|
|||
a.len = b.len
|
||||
a.p = b.p
|
||||
else:
|
||||
if isLiteral(a) or (a.p.cap and not strlitFlag) < b.len:
|
||||
if isLiteral(a) or (a.p.cap and not strlitFlag) < b.len:
|
||||
# we have to allocate the 'cap' here, consider
|
||||
# 'let y = newStringOfCap(); var x = y'
|
||||
# on the other hand... These get turned into moves now.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue