@@ -4560,12 +4560,10 @@ static void* tmalloc_small(mstate m, size_t nb) {
45604560
45614561#if !ONLY_MSPACES
45624562
4563- #if 0 // Temporarily work around https://bugs.llvm.org/show_bug.cgi?id=43613
45644563#if __wasilibc_unmodified_upstream // Forward declaration of try_init_allocator.
45654564#else
45664565static void try_init_allocator (void );
45674566#endif
4568- #endif
45694567
45704568void * dlmalloc (size_t bytes ) {
45714569 /*
@@ -4595,13 +4593,11 @@ void* dlmalloc(size_t bytes) {
45954593 ensure_initialization (); /* initialize in sys_alloc if not using locks */
45964594#endif
45974595
4598- #if 0 // Temporarily work around https://bugs.llvm.org/show_bug.cgi?id=43613
45994596#if __wasilibc_unmodified_upstream // Try to initialize the allocator.
46004597#else
46014598 if (!is_initialized (gm )) {
46024599 try_init_allocator ();
46034600 }
4604- #endif
46054601#endif
46064602
46074603 if (!PREACTION (gm )) {
@@ -5213,8 +5209,7 @@ static void internal_inspect_all(mstate m,
52135209}
52145210#endif /* MALLOC_INSPECT_ALL */
52155211
5216- #if 0 // Temporarily work around https://bugs.llvm.org/show_bug.cgi?id=43613
5217- #ifdef __wasilibc_unmodified_upstream // Define a function that initializes the initial state of dlmalloc
5212+ #ifdef __wasilibc_unmodified_upstream // Define a function that initializes the initial state of dlmalloc.
52185213#else
52195214/* ------------------ Exported try_init_allocator -------------------- */
52205215
@@ -5249,7 +5244,6 @@ static void try_init_allocator(void) {
52495244 init_top (gm , (mchunkptr )base , initial_heap_size - TOP_FOOT_SIZE );
52505245}
52515246#endif
5252- #endif
52535247
52545248/* ------------------ Exported realloc, memalign, etc -------------------- */
52555249
0 commit comments