WASM: fix bug in GC

This commit is contained in:
Alexey Andreev 2017-05-15 22:04:30 +03:00
parent 92580d0892
commit d882fd14a6

View File

@ -125,7 +125,7 @@ public final class GC {
Address staticRoots = Mutator.getStaticGCRoots();
int staticCount = staticRoots.getInt();
staticRoots.add(8);
staticRoots = staticRoots.add(8);
while (staticCount-- > 0) {
RuntimeObject object = staticRoots.getAddress().getAddress().toStructure();
if (object != null) {