mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -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() {
|
||||
return stack;
|
||||
return stack != initStack() ? stack : null;
|
||||
}
|
||||
|
||||
public static Address getNextStackRoots(Address address) {
|
||||
|
|
|
@ -119,7 +119,7 @@ public class WasmClassGenerator {
|
|||
break;
|
||||
case LONG:
|
||||
case DOUBLE:
|
||||
size = 5;
|
||||
size = 8;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user