RFR JDK-8028275: Metaspace ShrinkGrowTest causes fatal error if run with JFR
Coleen Phillimore
coleen.phillimore at oracle.com
Mon Jan 6 12:37:24 PST 2014
Zhengyu,
There are other calls to initialize_class in Threads::create_vm() that
can create a pending exception and return with CHECK_0 after the
EXCEPTION MARK.
It seems to me that the EXCEPTION_MARK should be removed and the caller
of this function checks for the pending exception. Better yet would be
to encapsulate the calls to initialize_class into a function(s) and
check the return for pending exception and exit the jvm with
jvm_exit_during_initialization().
Coleen
On 01/06/2014 10:55 AM, Zhengyu Gu wrote:
> This is another bug related on using EXCEPTION_MARK and CHECK macros. JSR292 initialization is done after init_completed flag is set to true, so any pending exceptions from initializing JSR292 classes can cause CHECK macro to return, and trigger the assertion in ExceptionMark destructor.
>
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8028275
> Webrev: http://cr.openjdk.java.net/~zgu/8028275/webrev.00/
>
> Test:
> Tested the fix on reported platform.
>
>
> Thanks,
>
> -Zhengyu
More information about the hotspot-runtime-dev
mailing list