Skip to content

mrb_gc_register() may cause GC and collect the object being protected #6317

Description

@catsidhe

mrb_gc_register() calls mrb_ary_new() or mrb_ary_push() - both of which may trigger garbage collection (always triggers in case of MRB_GC_STRESS), which in turn could reclaim the object we're trying to push to GC_ROOT_SYM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions