RFR (S): 8098573: Compiler accesses to shared archive fail if archive is remapped
david.holmes at oracle.com
Tue Jul 12 00:51:37 UTC 2016
On 12/07/2016 2:57 AM, Vladimir Kozlov wrote:
> Looks good to me.
> CCing to runtime for them to look.
Seems fine to me.
> On 7/11/16 8:26 AM, Zoltán Majó wrote:
>> please review the fix for JDK-8098573.
>> Problem: The VM crashes with a SIGSEGV due to the compiler accessing
>> symbol information in a (AppCDS) shared archive. I
>> was not able to reproduce the crash, but there is evidence to suggest
>> that the crash is caused by the *compiler
>> accessing the shared archive when not in VM state*: While the compiler
>> is reading form the shared archive, an ongoing
>> VM_RedefineClasses operation remaps the shared archive (with different
>> permissions but at the same address), which is
>> the only likely cause of the SEGV_MAPERR in the compiler. For more
>> details please see .
>> Solution: Change the destructor ciEnv::~ciEnv() to access symbols in
>> VM state (similar to other places in the compiler
>> accessing symbol information).
>> - JPRT;
>> - RBT testing w/ all hotspot tests is in progress.
>> Thank you!
>> Best regards,
More information about the hotspot-compiler-dev