WASM: align heap location by 4 bytes

This commit is contained in:
Alexey Andreev 2016-10-01 00:19:13 +03:00
parent ef9d8a30bc
commit 9643e12710

View File

@ -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);
}