From 1634280e1cd7cbe1f4523681b3dc4036c077256a Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Wed, 23 Oct 2024 20:54:38 +0100 Subject: 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. --- internal/ractor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/ractor.h') diff --git a/internal/ractor.h b/internal/ractor.h index eef5ffdb89..a65907a05a 100644 --- a/internal/ractor.h +++ b/internal/ractor.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 */ -- cgit v1.2.3