Skip to content

Commit

Permalink
try enabling inline allocation of structs with pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Dec 19, 2019
1 parent 0edadf1 commit 54133f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/datatype.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,10 @@ void jl_compute_field_offsets(jl_datatype_t *st)
// now finish deciding if this instantiation qualifies for special properties
assert(!isbitstype || st->layout->npointers == 0); // the definition of isbits
if (isinlinealloc && st->layout->npointers > 0) {
//if (st->ninitialized != nfields)
// isinlinealloc = 0;
//else if (st->layout->fielddesc_type != 0) // GC only implements support for this
// isinlinealloc = 0;
isinlinealloc = 0;
if (st->ninitialized != nfields)
isinlinealloc = 0;
else if (st->layout->fielddesc_type != 0) // GC only implements support for this
isinlinealloc = 0;
}
st->isbitstype = isbitstype;
st->isinlinealloc = isinlinealloc;
Expand Down

0 comments on commit 54133f9

Please sign in to comment.