8210066: [JVMCI] iterateFrames uses wrong GrowableArray API for appending

Reviewed-by: dlong, twisti
This commit is contained in:
Doug Simon 2018-08-31 11:43:06 +02:00
parent 8cc7ce2c18
commit c131915d0a
2 changed files with 84 additions and 9 deletions

View file

@ -1059,11 +1059,10 @@ C2V_VMENTRY(jobject, iterateFrames, (JNIEnv*, jobject compilerToVM, jobjectArray
} else {
// some object might already have been re-allocated, only reallocate the non-allocated ones
objects = new GrowableArray<ScopeValue*>(scope->objects()->length());
int ii = 0;
for (int i = 0; i < scope->objects()->length(); i++) {
ObjectValue* sv = (ObjectValue*) scope->objects()->at(i);
if (sv->value().is_null()) {
objects->at_put(ii++, sv);
objects->append(sv);
}
}
}