fixes a severe bug of testament (#20832)

* test azure

* use exit 1

* try again

* use useSysAssert

* disable i386

* use refc for tlsEmulation on i386

* use refc

* disable i386

Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
This commit is contained in:
ringabout 2022-11-17 09:38:07 +08:00 • committed by GitHub
commit cdbf5b4699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 13 additions and 1 deletions

View file

@ -900,6 +900,7 @@ proc rawDealloc(a: var MemRegion, p: pointer) =
#sysAssert(isAllocatedPtr(a, p), "rawDealloc: no allocated pointer")
sysAssert(allocInv(a), "rawDealloc: begin")
var c = pageAddr(p)
sysAssert(c != nil, "rawDealloc: begin")
if isSmallChunk(c):
# `p` is within a small chunk:
var c = cast[PSmallChunk](c)