We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c411d9 commit 180686eCopy full SHA for 180686e
src/main/java/org/truffleruby/language/RubyDynamicObject.java
@@ -52,6 +52,7 @@
52
import com.oracle.truffle.api.profiles.BranchProfile;
53
import com.oracle.truffle.api.profiles.ConditionProfile;
54
import com.oracle.truffle.api.utilities.TriState;
55
+import org.truffleruby.language.objects.shared.SharedObjects;
56
57
/** All Ruby DynamicObjects extend this. */
58
@ExportLibrary(RubyLibrary.class)
@@ -76,6 +77,7 @@ public final RubyClass getMetaClass() {
76
77
}
78
79
public void setMetaClass(RubyClass metaClass) {
80
+ SharedObjects.assertPropagateSharing(this, metaClass);
81
this.metaClass = metaClass;
82
83
0 commit comments