From ff6a917bc3726609766ca9610010f671e7546d10 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 22 Sep 2016 00:10:37 +0300 Subject: [PATCH] WASM: don't write Address objects to GC roots --- .../org/teavm/backend/wasm/generate/WasmClassGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/backend/wasm/generate/WasmClassGenerator.java b/core/src/main/java/org/teavm/backend/wasm/generate/WasmClassGenerator.java index 7b02222d0..013e020a9 100644 --- a/core/src/main/java/org/teavm/backend/wasm/generate/WasmClassGenerator.java +++ b/core/src/main/java/org/teavm/backend/wasm/generate/WasmClassGenerator.java @@ -259,7 +259,7 @@ public class WasmClassGenerator { return true; } if (cls.getName().equals(Address.class.getName())) { - return true; + return false; } while (cls != null) { if (cls.getName().equals(Structure.class.getName()) || cls.getName().equals(Function.class.getName())) {