mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -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();
|
Address staticRoots = Mutator.getStaticGCRoots();
|
||||||
int staticCount = staticRoots.getInt();
|
int staticCount = staticRoots.getInt();
|
||||||
staticRoots.add(8);
|
staticRoots = staticRoots.add(8);
|
||||||
while (staticCount-- > 0) {
|
while (staticCount-- > 0) {
|
||||||
RuntimeObject object = staticRoots.getAddress().getAddress().toStructure();
|
RuntimeObject object = staticRoots.getAddress().getAddress().toStructure();
|
||||||
if (object != null) {
|
if (object != null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user