--- old/src/hotspot/share/opto/graphKit.cpp 2018-10-05 10:52:18.495918525 +0200 +++ new/src/hotspot/share/opto/graphKit.cpp 2018-10-05 10:52:10.933902570 +0200 @@ -4005,7 +4005,7 @@ } } - if (EnableValhalla && (!layout_con || elem == NULL || (elem_klass != NULL && elem_klass->is_java_lang_Object() && !ary_type->klass_is_exact()))) { + if (EnableValhalla && (elem == NULL || (elem_klass != NULL && elem_klass->is_java_lang_Object() && !ary_type->klass_is_exact()))) { assert(raw_default_value == NULL, "shouldn't be set yet"); // unkown array type, could be a non flattened value array that's