Skip to content

Commit 539cbf1

Browse files
committed
try enabling inline allocation of structs with pointers
1 parent 6c80e54 commit 539cbf1

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
@@ -509,11 +509,10 @@ void jl_compute_field_offsets(jl_datatype_t *st)
509509
// now finish deciding if this instantiation qualifies for special properties
510510
assert(!isbitstype || st->layout->npointers == 0); // the definition of isbits
511511
if (isinlinealloc && st->layout->npointers > 0) {
512-
//if (st->ninitialized != nfields)
513-
// isinlinealloc = 0;
514-
//else if (st->layout->fielddesc_type != 0) // GC only implements support for this
515-
// isinlinealloc = 0;
516-
isinlinealloc = 0;
512+
if (st->ninitialized != nfields)
513+
isinlinealloc = 0;
514+
else if (st->layout->fielddesc_type != 0) // GC only implements support for this
515+
isinlinealloc = 0;
517516
}
518517
st->isbitstype = isbitstype;
519518
st->isinlinealloc = isinlinealloc;

0 commit comments

Comments
 (0)