mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
Initialize external GC Library
Co-Authored-By: Peter Zhu <peter@peterzhu.ca>
This commit is contained in:
parent
a2ea4ec30c
commit
065710c0f5
6 changed files with 79 additions and 4 deletions
|
@ -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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue