]> git.proxmox.com Git - wasi-libc.git/commitdiff
Temporarily disable the use of `__heap_base`. (#132)
authorDan Gohman <sunfish@mozilla.com>
Thu, 7 Nov 2019 21:09:31 +0000 (13:09 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Nov 2019 21:09:31 +0000 (13:09 -0800)
This temporarily disables the feature in
a214f1c0b167608ab4ec3e63f8144c3430af9372, since it hits LLVM bug
43613, which is fixed on LLVM master and awaiting a backport to
the 9.0 branch.

https://bugs.llvm.org/show_bug.cgi?id=43613

dlmalloc/src/malloc.c
expected/wasm32-wasi/undefined-symbols.txt

index 56988432b55b7394b1c99b58c0b4df0e0a9aa9dd..73e09366c063d8306e9c4790d83833e71a8b48e0 100644 (file)
@@ -4560,10 +4560,12 @@ static void* tmalloc_small(mstate m, size_t nb) {
 
 #if !ONLY_MSPACES
 
+#if 0 // Temporarily work around https://bugs.llvm.org/show_bug.cgi?id=43613
 #if __wasilibc_unmodified_upstream // Forward declaration of try_init_allocator.
 #else
 static void try_init_allocator(void);
 #endif
+#endif
 
 void* dlmalloc(size_t bytes) {
   /*
@@ -4593,11 +4595,13 @@ void* dlmalloc(size_t bytes) {
   ensure_initialization(); /* initialize in sys_alloc if not using locks */
 #endif
 
+#if 0 // Temporarily work around https://bugs.llvm.org/show_bug.cgi?id=43613
 #if __wasilibc_unmodified_upstream // Try to initialize the allocator.
 #else
   if (!is_initialized(gm)) {
     try_init_allocator();
   }
+#endif
 #endif
 
   if (!PREACTION(gm)) {
@@ -5209,6 +5213,7 @@ static void internal_inspect_all(mstate m,
 }
 #endif /* MALLOC_INSPECT_ALL */
 
+#if 0 // Temporarily work around https://bugs.llvm.org/show_bug.cgi?id=43613
 #ifdef __wasilibc_unmodified_upstream // Define a function that initializes the initial state of dlmalloc
 #else
 /* ------------------ Exported try_init_allocator -------------------- */
@@ -5244,6 +5249,7 @@ static void try_init_allocator(void) {
   init_top(gm, (mchunkptr)base, initial_heap_size - TOP_FOOT_SIZE);
 }
 #endif
+#endif
 
 /* ------------------ Exported realloc, memalign, etc -------------------- */
 
index 47e31069034132e16b0c930206c63ce677ed4d9a..8715e541d86ffb5467eafa66e2f73d736c56961d 100644 (file)
@@ -10,7 +10,6 @@ __floatsitf
 __floatunsitf
 __getf2
 __gttf2
-__heap_base
 __letf2
 __lttf2
 __netf2