mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
WASM: align heap location by 4 bytes
This commit is contained in:
parent
ef9d8a30bc
commit
9643e12710
|
@ -661,6 +661,7 @@ public class WasmTarget implements TeaVMTarget {
|
|||
|
||||
gcMemory -= regionCount * 2;
|
||||
address += regionCount * 2;
|
||||
address = (address + 4) >> 2 << 2;
|
||||
gcIntrinsic.setHeapAddress(address);
|
||||
gcIntrinsic.setAvailableBytes(gcMemory);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user