fixes #22262; fixes -d:useMalloc broken with --mm:none and --threads on (#22355)

* fixes #22262; -d:useMalloc broken with --mm:none and threads on

* fixes

(cherry picked from commit a23e53b490)
This commit is contained in:
ringabout
2023-08-01 21:18:08 +08:00
committed by narimiran
parent d80397c7d7
commit 09f7be13b6
2 changed files with 2 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ type
proc alloc(r: var MemRegion, size: int): pointer =
result = alloc(size)
proc alloc0Impl(r: var MemRegion, size: int): pointer =
proc alloc0(r: var MemRegion, size: int): pointer =
result = alloc0Impl(size)
proc dealloc(r: var MemRegion, p: pointer) = dealloc(p)
proc deallocOsPages(r: var MemRegion) = discard

View File

@@ -2,5 +2,6 @@ discard """
matrix: "--gc:none -d:useMalloc"
"""
# bug #15617
# bug #22262
let x = 4
doAssert x == 4