mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
3 changed files with 6 additions and 0 deletions
|
@ -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 */
|
||||
|
|
1
ractor.c
1
ractor.c
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue