We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb02184 commit ef3ddb1Copy full SHA for ef3ddb1
src/hotspot/share/opto/vector.cpp
@@ -241,12 +241,16 @@ void PhaseVector::scalarize_vbox_node(VectorBoxNode* vec_box) {
241
while (safepoints.size() > 0) {
242
SafePointNode* sfpt = safepoints.pop()->as_SafePoint();
243
244
+ ciInstanceKlass* iklass = vec_box->box_type()->klass()->as_instance_klass();
245
+ int n_fields = iklass->nof_nonstatic_fields();
246
+ assert(n_fields == 1, "sanity");
247
+
248
uint first_ind = (sfpt->req() - sfpt->jvms()->scloff());
249
Node* sobj = new SafePointScalarObjectNode(vec_box->box_type(),
250
#ifdef ASSERT
251
NULL,
252
#endif // ASSERT
- first_ind, /*n_fields=*/1);
253
+ first_ind, n_fields);
254
sobj->init_req(0, C->root());
255
sfpt->add_req(vec_value);
256
0 commit comments