Skip to content

Commit b497e44

Browse files
JeffBezansonvtjnash
authored andcommitted
try enabling inline allocation of structs with pointers
1 parent dd16a1b commit b497e44

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/datatype.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,10 @@ void jl_compute_field_offsets(jl_datatype_t *st)
503503
// now finish deciding if this instantiation qualifies for special properties
504504
assert(!isbitstype || st->layout->npointers == 0); // the definition of isbits
505505
if (isinlinealloc && st->layout->npointers > 0) {
506-
//if (st->ninitialized != nfields)
507-
// isinlinealloc = 0;
508-
//else if (st->layout->fielddesc_type != 0) // GC only implements support for this
509-
// isinlinealloc = 0;
510-
isinlinealloc = 0;
506+
if (st->ninitialized != nfields)
507+
isinlinealloc = 0;
508+
else if (st->layout->fielddesc_type != 0) // GC only implements support for this
509+
isinlinealloc = 0;
511510
}
512511
st->isbitstype = isbitstype;
513512
st->isinlinealloc = isinlinealloc;

0 commit comments

Comments
 (0)