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:
Matt Valentine-House 2024-10-23 20:54:38 +01:00
parent 84ec06533d
commit 1634280e1c
Notes: git 2024-10-24 15:09:05 +00:00
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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 */

View File

@ -12,6 +12,7 @@
#include "internal/error.h"
#include "internal/gc.h"
#include "internal/hash.h"
#include "internal/ractor.h"
#include "internal/rational.h"
#include "internal/struct.h"
#include "internal/thread.h"