Skip to content

Commit 23159b0

Browse files
committed
try enabling inline allocation of structs with pointers
1 parent 1c89535 commit 23159b0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/datatype.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,10 @@ void jl_compute_field_offsets(jl_datatype_t *st)
518518
// now finish deciding if this instantiation qualifies for special properties
519519
assert(!isbitstype || st->layout->npointers == 0); // the definition of isbits
520520
if (isinlinealloc && st->layout->npointers > 0) {
521-
//if (st->ninitialized != nfields)
522-
// isinlinealloc = 0;
523-
//else if (st->layout->fielddesc_type != 0) // GC only implements support for this
524-
// isinlinealloc = 0;
525-
isinlinealloc = 0;
521+
if (st->ninitialized != nfields)
522+
isinlinealloc = 0;
523+
else if (st->layout->fielddesc_type != 0) // GC only implements support for this
524+
isinlinealloc = 0;
526525
}
527526
st->isbitstype = isbitstype;
528527
st->isinlinealloc = isinlinealloc;

0 commit comments

Comments
 (0)