RFR (S) 8247296: Optimize JVM_GetDeclaringClass
yumin.qi at oracle.com
Fri Jul 24 05:54:31 UTC 2020
Looks good to me. I have done a quick search and found (may not cover
Where thread_handle resolved multiple times.
Where clazz resolved twice.
Do you want to include those two files in your list?
On 7/23/20 8:49 PM, David Holmes wrote:
> Bug: https://bugs.openjdk.java.net/browse/JDK-8247296
> webrev: http://cr.openjdk.java.net/~dholmes/8247296/webrev/
> Please review this simple optimization contributed by Christoph Dreis
> in its initial form and then expanded by me to cover other cases in
> There is a common pattern of code of the form:
> (java_lang_Class::is_primitive(JNIHandles::resolve_non_null(ofClass)) ||
> which resolves cls twice. There are also duplicate calls to as_Klass
> that can be removed in a couple of cases.
> Testing: tiers 1 - 3
More information about the hotspot-runtime-dev