simply just dont inline
This commit is contained in:
parent
6f82c92c30
commit
2261f36101
|
@ -13,7 +13,7 @@ BlockAlloc := struct {
|
||||||
return .(0, null)
|
return .(0, null)
|
||||||
}
|
}
|
||||||
|
|
||||||
$alloc := fn(self: Self, alloc_type: type, count: uint): alloc_return.AllocReturn {
|
alloc := fn(self: Self, alloc_type: type, count: uint): alloc_return.AllocReturn {
|
||||||
offset := 1
|
offset := 1
|
||||||
a := 1
|
a := 1
|
||||||
loop {
|
loop {
|
||||||
|
@ -35,7 +35,7 @@ BlockAlloc := struct {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$dealloc := fn(self: Self, ptr: ^u8, alloc_type: type, count: uint): void {
|
dealloc := fn(self: Self, ptr: ^u8, alloc_type: type, count: uint): void {
|
||||||
// size := size_of(alloc_type)*count
|
// size := size_of(alloc_type)*count
|
||||||
size := 64
|
size := 64
|
||||||
// get the size alligned to the nearest block
|
// get the size alligned to the nearest block
|
||||||
|
|
Loading…
Reference in a new issue