File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ edition = "2021"
12
12
# Metadata for the Ruby repository
13
13
[package .metadata .ci-repos .ruby ]
14
14
repo = " mmtk/ruby" # This is used by actions/checkout, so the format is "owner/repo", not URL.
15
- rev = " 8c5bd19b7a73c5156c4e2b9ee25cbf89c66816b8 "
15
+ rev = " 482db1b960623260dcca01e82d36d38a6226c9bf "
16
16
17
17
[lib ]
18
18
name = " mmtk_ruby"
Original file line number Diff line number Diff line change @@ -374,3 +374,15 @@ pub extern "C" fn mmtk_object_reference_write_post(
374
374
ignored_target,
375
375
)
376
376
}
377
+
378
+ /// Enumerate objects. This function will call `callback(object, data)` for each object. It has
379
+ /// undefined behavior if allocation or GC happens while this function is running.
380
+ #[ no_mangle]
381
+ pub extern "C" fn mmtk_enumerate_objects (
382
+ callback : extern "C" fn ( ObjectReference , * mut libc:: c_void ) ,
383
+ data : * mut libc:: c_void ,
384
+ ) {
385
+ crate :: mmtk ( ) . enumerate_objects ( |object| {
386
+ callback ( object, data) ;
387
+ } )
388
+ }
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ test/ruby/test_integer.rb
53
53
test/ruby/test_io_buffer.rb
54
54
test/ruby/test_io_m17n.rb
55
55
# test/ruby/test_io.rb XXXXX leaks?
56
- # test/ruby/test_iseq.rb XXXXX failures
56
+ test/ruby/test_iseq.rb
57
57
test/ruby/test_iterator.rb
58
58
test/ruby/test_key_error.rb
59
59
test/ruby/test_keyword.rb
@@ -75,8 +75,8 @@ test/ruby/test_nomethod_error.rb
75
75
test/ruby/test_not.rb
76
76
test/ruby/test_numeric.rb
77
77
test/ruby/test_object.rb
78
- # test/ruby/test_objectspace.rb XXXX failures
79
- # test/ruby/test_optimization.rb XXXXX hard crash
78
+ test/ruby/test_objectspace.rb
79
+ test/ruby/test_optimization.rb
80
80
test/ruby/test_pack.rb
81
81
test/ruby/test_parse.rb
82
82
test/ruby/test_path.rb
@@ -98,7 +98,7 @@ test/ruby/test_require.rb
98
98
# test/ruby/test_rubyoptions.rb XXXX failures and crashes
99
99
# test/ruby/test_rubyvm_mjit.rb XXXXX query
100
100
test/ruby/test_rubyvm.rb
101
- # test/ruby/test_settracefunc.rb XXXX failures
101
+ test/ruby/test_settracefunc.rb
102
102
test/ruby/test_signal.rb
103
103
test/ruby/test_sleep.rb
104
104
test/ruby/test_sprintf_comb.rb
You can’t perform that action at this time.
0 commit comments