Skip to content

Commit

Permalink
gc_setmark should check if the object belongs to a image
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi authored and giordano committed Sep 23, 2024
1 parent c392082 commit 0239e33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gc-stock.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ STATIC_INLINE void gc_setmark_pool(jl_ptls_t ptls, jl_taggedvalue_t *o,
STATIC_INLINE void gc_setmark(jl_ptls_t ptls, jl_taggedvalue_t *o,
uint8_t mark_mode, size_t sz) JL_NOTSAFEPOINT
{
if (o->bits.in_image) {
return;
}
if (sz <= GC_MAX_SZCLASS) {
gc_setmark_pool(ptls, o, mark_mode);
}
Expand Down

0 comments on commit 0239e33

Please sign in to comment.