mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
WASM: fix bug in GC
This commit is contained in:
parent
92580d0892
commit
d882fd14a6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user