Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Peterson <joshuap@unity3d.com>2020-06-12 21:32:43 +0300
committerGitHub <noreply@github.com>2020-06-12 21:32:43 +0300
commit4a0fe41d300e12fb8ff62c239e588cbb0c4c4b05 (patch)
tree639ea2bec57daf60babf226a8f049faa715b405d
parent69182463c88050dd7dfb7e2a65b052db01a81769 (diff)
parentd72985871cd7049d9ca9d5f589c50c97d2f7a67f (diff)
Merge pull request #58 from Unity-Technologies/tiny-emscripten-allocator
Use a specific Emscripten allocator for Tiny
-rw-r--r--include/private/gcconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index cbe3ae9e..242f0a0a 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -3591,6 +3591,9 @@ EXTERN_C_BEGIN
# elif defined(HAIKU)
ptr_t GC_haiku_get_mem(size_t bytes);
# define GET_MEM(bytes) (struct hblk*)GC_haiku_get_mem(bytes)
+# elif defined(EMSCRIPTEN_TINY)
+ void *emmalloc_memalign(size_t alignment, size_t size);
+# define GET_MEM(bytes) (struct hblk*)emmalloc_memalign(GC_page_size, bytes)
# else
ptr_t GC_unix_get_mem(size_t bytes);
# define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes)