mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
7177409: Perf regression in JVM_GetClassDeclaredFields after generic signature changes
In fieldDescriptor::generic_signature() returns NULL immediately if the field has no generic signature. Reviewed-by: dholmes, coleenp, jcoomes
This commit is contained in:
parent
8b20e7af53
commit
1a35ed23d9
3 changed files with 6 additions and 1 deletions
|
@ -39,6 +39,10 @@ oop fieldDescriptor::loader() const {
|
|||
}
|
||||
|
||||
Symbol* fieldDescriptor::generic_signature() const {
|
||||
if (!has_generic_signature()) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int idx = 0;
|
||||
instanceKlass* ik = instanceKlass::cast(field_holder());
|
||||
for (AllFieldStream fs(ik); !fs.done(); fs.next()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue