diff options
| author | Koichi Sasada <ko1@atdot.net> | 2025-09-25 05:50:05 +0900 |
|---|---|---|
| committer | Koichi Sasada <ko1@atdot.net> | 2025-10-23 13:08:26 +0900 |
| commit | bc00c4468e0054ca896d2b83d3020180915f64cf (patch) | |
| tree | 3942c12dbba8254925400f16c022661dcbb7ffb0 /class.c | |
| parent | 45907b1b00d09ce2c40f5073ff540d8b63217d96 (diff) | |
use `SET_SHAREABLE`
to adopt strict shareable rule.
* (basically) shareable objects only refer shareable objects
* (exception) shareable objects can refere unshareable objects
but should not leak reference to unshareable objects to Ruby world
Diffstat (limited to 'class.c')
| -rw-r--r-- | class.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -775,7 +775,7 @@ class_alloc0(enum ruby_value_type type, VALUE klass, bool namespaceable) RUBY_ASSERT(type == T_CLASS || type == T_ICLASS || type == T_MODULE); - VALUE flags = type; + VALUE flags = type | FL_SHAREABLE; if (RGENGC_WB_PROTECTED_CLASS) flags |= FL_WB_PROTECTED; if (namespaceable) flags |= RCLASS_NAMESPACEABLE; |
