From 75ff4c5e0f9a2be63cd902fc0599c7ff70d55108 Mon Sep 17 00:00:00 2001 From: Yiteng Guo Date: Sat, 23 Nov 2019 02:54:40 -0500 Subject: [PATCH] change GC_malloc to an indirect runtime function --- compiler/src/jlang/util/Constants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/jlang/util/Constants.java b/compiler/src/jlang/util/Constants.java index 38566f8e..e706fd58 100644 --- a/compiler/src/jlang/util/Constants.java +++ b/compiler/src/jlang/util/Constants.java @@ -17,7 +17,7 @@ public class Constants { public static final String PRIMITIVE_CLASS_OBJECT_SUFFIX = "ClassObject"; - public static final String CALLOC = "GC_malloc"; + public static final String CALLOC = "__GC_malloc"; public static final String ENTRY_TRAMPOLINE = "Java_jlang_runtime_MainWrapper_main"; public static final int LLVM_ADDR_SPACE = 0;