mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
* fixes #22262; -d:useMalloc broken with --mm:none and threads on
* fixes
(cherry picked from commit a23e53b490)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -2,5 +2,6 @@ discard """
|
||||
matrix: "--gc:none -d:useMalloc"
|
||||
"""
|
||||
# bug #15617
|
||||
# bug #22262
|
||||
let x = 4
|
||||
doAssert x == 4
|
||||
|
||||
Reference in New Issue
Block a user