mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-02-11 11:09:44 +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