Fix shared GC with -DRUBY_DEBUG
RUBY_DEBUG enables ractor assertions, which sets up some space at the end of each RVALUE to store the associated ractor ID. We need to make sure the function that does this is visible to shared GC libraries.
This commit is contained in:
parent
84ec06533d
commit
1634280e1c
Notes:
git
2024-10-24 15:09:05 +00:00
@ -13472,6 +13472,7 @@ ractor.$(OBJEXT): $(top_srcdir)/internal/gc.h
|
||||
ractor.$(OBJEXT): $(top_srcdir)/internal/hash.h
|
||||
ractor.$(OBJEXT): $(top_srcdir)/internal/imemo.h
|
||||
ractor.$(OBJEXT): $(top_srcdir)/internal/numeric.h
|
||||
ractor.$(OBJEXT): $(top_srcdir)/internal/ractor.h
|
||||
ractor.$(OBJEXT): $(top_srcdir)/internal/rational.h
|
||||
ractor.$(OBJEXT): $(top_srcdir)/internal/sanitizers.h
|
||||
ractor.$(OBJEXT): $(top_srcdir)/internal/serial.h
|
||||
|
@ -3,4 +3,8 @@
|
||||
|
||||
void rb_ractor_ensure_main_ractor(const char *msg);
|
||||
|
||||
RUBY_SYMBOL_EXPORT_BEGIN
|
||||
void rb_ractor_setup_belonging(VALUE obj);
|
||||
RUBY_SYMBOL_EXPORT_END
|
||||
|
||||
#endif /* INTERNAL_RACTOR_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user