diff options
author | Matt Valentine-House <[email protected]> | 2024-10-23 20:54:38 +0100 |
---|---|---|
committer | Matt Valentine-House <[email protected]> | 2024-10-24 16:08:46 +0100 |
commit | 1634280e1cd7cbe1f4523681b3dc4036c077256a (patch) | |
tree | 23bae98f2b1de3d87d02c898087db3942015a8ea /internal/ractor.h | |
parent | 84ec06533d789a787ff766940795678847d7ee59 (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11945
Diffstat (limited to 'internal/ractor.h')
-rw-r--r-- | internal/ractor.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |