Fix bugs in GC

This commit is contained in:
Alexey Andreev 2016-09-13 00:36:20 +03:00
parent e92ad161ef
commit d28ff73c51
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ public final class WasmRuntime {
}
public static Address getStackGcRoots() {
return stack;
return stack != initStack() ? stack : null;
}
public static Address getNextStackRoots(Address address) {

View File

@ -119,7 +119,7 @@ public class WasmClassGenerator {
break;
case LONG:
case DOUBLE:
size = 5;
size = 8;
break;
}