summaryrefslogtreecommitdiff
path: root/internal/gc.h
diff options
context:
space:
mode:
authorMatt Valentine-House <[email protected]>2024-04-02 13:52:50 +0100
committerMatt Valentine-House <[email protected]>2024-04-15 19:50:47 +0100
commit065710c0f5c1e81f0fa7ab6ddd3ccbc41e9cc2cc (patch)
treeb3cf24415dad95defcb3dcaa9088b36946dfd3c4 /internal/gc.h
parenta2ea4ec30c409ebe8ae7952f092e0bd8c1912a17 (diff)
Initialize external GC Library
Co-Authored-By: Peter Zhu <[email protected]>
Diffstat (limited to 'internal/gc.h')
-rw-r--r--internal/gc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/gc.h b/internal/gc.h
index 5b1180fd91..91dbc0ccf3 100644
--- a/internal/gc.h
+++ b/internal/gc.h
@@ -16,6 +16,10 @@
#include "ruby/ruby.h" /* for rb_event_flag_t */
#include "vm_core.h" /* for GET_EC() */
+#ifndef USE_SHARED_GC
+# define USE_SHARED_GC 0
+#endif
+
#if defined(__x86_64__) && !defined(_ILP32) && defined(__GNUC__)
#define SET_MACHINE_STACK_END(p) __asm__ __volatile__ ("movq\t%%rsp, %0" : "=r" (*(p)))
#elif defined(__i386) && defined(__GNUC__)