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 81d58d2cc8
commit 4a7cdaecb4
2 changed files with 3 additions and 2 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