Fixed memory allocation on MacOS
This commit is contained in:
parent
1a895aa360
commit
314aea5ffc
3 changed files with 10 additions and 4 deletions
|
@ -1,9 +0,0 @@
|
|||
import sys
|
||||
|
||||
alloc(length Int) -> Pointer {
|
||||
return sys.mmap(0, length, 0x1|0x2, 0x02|0x20|0x100)
|
||||
}
|
||||
|
||||
free(address Pointer, length Int) -> Int {
|
||||
return sys.munmap(address, length)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue