From b497e44467a0d7f338fff01f6996240bcc74f6f6 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Tue, 17 Dec 2019 13:47:16 -0500 Subject: [PATCH] try enabling inline allocation of structs with pointers --- src/datatype.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/datatype.c b/src/datatype.c index 779d0a30c98af..7bef6b0037ed7 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -503,11 +503,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;