aboutsummaryrefslogtreecommitdiffstats
path: root/ractor_core.h
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-11-18 10:39:09 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-11-21 11:26:26 -0500
commit09423876f9191a73ab428dc27eb5c436105048db (patch)
treee1a5a717bd66cc3d9b6725da938ad9791af8a10f /ractor_core.h
parent5f95228c76e6f6994eb4149217fe3e38f9ff8a27 (diff)
downloadruby-09423876f9191a73ab428dc27eb5c436105048db.tar.gz
Let SHAPE_BITS take 32 bits on debug builds
The ractor_belonging_id has been moved out of the headers, so object shapes can take the top 32 bits of the flags on debug builds.
Diffstat (limited to 'ractor_core.h')
-rw-r--r--ractor_core.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/ractor_core.h b/ractor_core.h
index d6b4a21e8d..968c12d291 100644
--- a/ractor_core.h
+++ b/ractor_core.h
@@ -291,8 +291,6 @@ rb_ractor_id(const rb_ractor_t *r)
# define RACTOR_BELONGING_ID(obj) (*(uint32_t *)(((uintptr_t)(obj)) + rb_gc_obj_slot_size(obj)))
uint32_t rb_ractor_current_id(void);
-// If ractor check mode is enabled, shape bits needs to be smaller
-STATIC_ASSERT(shape_bits, SHAPE_ID_NUM_BITS == 16);
static inline void
rb_ractor_setup_belonging_to(VALUE obj, uint32_t rid)