RFR: 8288134: Super class names don't have envelopes
Harold Seigel
hseigel at openjdk.java.net
Tue Jun 14 15:19:05 UTC 2022
On Mon, 13 Jun 2022 18:44:24 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> SystemDictionary::resolve_super_or_null() calls resolve_instance_class_or_null_helper() which strips off the L; envelope for class names then calls resolve_instance_class_or_null().
> Super class names come from the constant pool or an existing InstanceKlass in the CDS path, so is already verified by the format checker, if the name has L; and it will already get a class format error.
>
> Removed this helper and call resolve_instance_class_or_null() directly, and inlined the helper function into resolve_or_null().
>
> Tested by tier1-4 on Oracle supported platforms.
Looks good!
Thanks, Harold
-------------
Marked as reviewed by hseigel (Reviewer).
PR: https://git.openjdk.org/jdk/pull/9144
More information about the hotspot-runtime-dev
mailing list