mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Fix bugs in GC
This commit is contained in:
parent
e92ad161ef
commit
d28ff73c51
|
@ -252,7 +252,7 @@ public final class WasmRuntime {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Address getStackGcRoots() {
|
public static Address getStackGcRoots() {
|
||||||
return stack;
|
return stack != initStack() ? stack : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Address getNextStackRoots(Address address) {
|
public static Address getNextStackRoots(Address address) {
|
||||||
|
|
|
@ -119,7 +119,7 @@ public class WasmClassGenerator {
|
||||||
break;
|
break;
|
||||||
case LONG:
|
case LONG:
|
||||||
case DOUBLE:
|
case DOUBLE:
|
||||||
size = 5;
|
size = 8;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user