Skip to content

Commit b9de078

Browse files
committed
try enabling inline allocation of structs with pointers
1 parent 7f28d91 commit b9de078

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
@@ -506,11 +506,10 @@ void jl_compute_field_offsets(jl_datatype_t *st)
506506
// now finish deciding if this instantiation qualifies for special properties
507507
assert(!isbitstype || st->layout->npointers == 0); // the definition of isbits
508508
if (isinlinealloc && st->layout->npointers > 0) {
509-
//if (st->ninitialized != nfields)
510-
// isinlinealloc = 0;
511-
//else if (st->layout->fielddesc_type != 0) // GC only implements support for this
512-
// isinlinealloc = 0;
513-
isinlinealloc = 0;
509+
if (st->ninitialized != nfields)
510+
isinlinealloc = 0;
511+
else if (st->layout->fielddesc_type != 0) // GC only implements support for this
512+
isinlinealloc = 0;
514513
}
515514
st->isbitstype = isbitstype;
516515
st->isinlinealloc = isinlinealloc;

0 commit comments

Comments
 (0)