From d882fd14a63cc1bd76060b3abf34f85d3b013692 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 15 May 2017 22:04:30 +0300 Subject: [PATCH] WASM: fix bug in GC --- core/src/main/java/org/teavm/runtime/GC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/runtime/GC.java b/core/src/main/java/org/teavm/runtime/GC.java index c4387baae..91013dd3e 100644 --- a/core/src/main/java/org/teavm/runtime/GC.java +++ b/core/src/main/java/org/teavm/runtime/GC.java @@ -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) {