Skip to content

Commit e8beb21

Browse files
committed
Add a spec that Object is not shared initially
1 parent 524ec4c commit e8beb21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/truffle/thread_safe_objects_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,8 @@ def wb; @wb; end
277277
shared?(obj).should == true # current non-ideal behavior
278278
end
279279

280+
it "classes and constants and they are not shared until sharing is started" do
281+
ruby_exe("p Truffle::Debug.shared?(Object)").should == "false\n"
282+
end
283+
280284
end

0 commit comments

Comments
 (0)