Skip to content

Commit e94a2f6

Browse files
committed
1 parent da3336c commit e94a2f6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ractor.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ ractor_mark(void *ptr)
216216
rb_gc_mark(r->r_stdin);
217217
rb_gc_mark(r->r_stdout);
218218
rb_gc_mark(r->r_stderr);
219+
rb_gc_mark(r->verbose);
220+
rb_gc_mark(r->debug);
219221
rb_hook_list_mark(&r->pub.hooks);
220222

221223
if (r->threads.cnt > 0) {

test/ruby/test_rubyoptions.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ def test_sflag
530530

531531
assert_in_out_err(%w(- -#=foo), "#!ruby -s\n", [],
532532
/invalid name for global variable - -# \(NameError\)/)
533+
534+
assert_in_out_err(['-s', '-e', 'GC.start; p $DEBUG', '--', '-DEBUG=x'], "", ['"x"'])
533535
end
534536

535537
def test_option_missing_argument

0 commit comments

Comments
 (0)