Skip to content

Commit 0239e33

Browse files
gbaraldigiordano
authored andcommitted
gc_setmark should check if the object belongs to a image
1 parent c392082 commit 0239e33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gc-stock.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ STATIC_INLINE void gc_setmark_pool(jl_ptls_t ptls, jl_taggedvalue_t *o,
305305
STATIC_INLINE void gc_setmark(jl_ptls_t ptls, jl_taggedvalue_t *o,
306306
uint8_t mark_mode, size_t sz) JL_NOTSAFEPOINT
307307
{
308+
if (o->bits.in_image) {
309+
return;
310+
}
308311
if (sz <= GC_MAX_SZCLASS) {
309312
gc_setmark_pool(ptls, o, mark_mode);
310313
}

0 commit comments

Comments
 (0)