RFR: 8249451: Unconditional exceptions clearing logic in compiler code should honor Async Exceptions

Jamsheed C M jamsheed.c.m at oracle.com
Thu Aug 6 12:07:40 UTC 2020


Hi all,

JBS: https://bugs.openjdk.java.net/browse/JDK-8249451

webrev: http://cr.openjdk.java.net/~jcm/8249451/webrev.00/

testing : mach1-5(links in jbs)

While working on JDK-8246381 it was noticed that compilation request 
path clears all exceptions(including async) and doesn't propagate[1].

Fix: patch restores the propagation behavior for the probable async 
exceptions.

Compilation request path propagate exception as in [2]. MDO and 
MethodCounter doesn't expect any exception other than metaspace 
OOM(added comments).

Deoptimization path doesn't clear probable async exceptions and take 
unpack_exception path for non uncommontraps.

Added java_lang_InternalError to well known classes.

Request for review.

Best Regards,

Jamsheed

[1] w.r.t changes done for JDK-7131259

[2]

     (a)
     -----> c1_Runtime1.cpp/interpreterRuntime.cpp/compilerRuntime.cpp
       |
        ----- compilationPolicy.cpp/tieredThresholdPolicy.cpp
          |
           ------ compileBroker.cpp

     (b)
     Xcomp versions
     ------> compilationPolicy.cpp
        |
         ------> compileBroker.cpp

     (c)

     Direct call to  compile_method in compileBroker.cpp

     JVMCI bootstrap, whitebox, replayCompile.




More information about the hotspot-runtime-dev mailing list