mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use rb_gc_mark
when marking globals
I think global references should either be 0 or valid heap pointers. `rb_gc_mark_maybe` checks to see if the pointer is a valid heap pointer, but I believe we already know they are valid addresses
This commit is contained in:
parent
9bcf4f3db2
commit
18e7f9000d
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ void
|
|||
rb_gvar_val_marker(VALUE *var)
|
||||
{
|
||||
VALUE data = (VALUE)var;
|
||||
if (data) rb_gc_mark_maybe(data);
|
||||
if (data) rb_gc_mark(data);
|
||||
}
|
||||
|
||||
VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue