RFR 8087153: EXCEPTION_ACCESS_VIOLATION when CDS RO section vanished on win32

Coleen Phillimore coleen.phillimore at oracle.com
Thu Jun 18 02:23:24 UTC 2015


Summary: use os::protect_memory() instead of calling os::reserve_memory 
again

We call mprotect or VirtualProtect on all of the platforms now rather 
than calling reserve_memory again for the same area.   This is used to 
make CDS read-only regions read-write if classes are redefined.

This is actually Christian Tornqvist's fix with my encouragement and 
testing on linux and solaris, and Misha's testing on windows.   We 
tested jdi tests with -Xshare:on, including the tests for bug 
https://bugs.openjdk.java.net/browse/JDK-8054386.

open webrev at http://cr.openjdk.java.net/~coleenp/8087153.01/
bug link https://bugs.openjdk.java.net/browse/JDK-8087153

Thanks,
Coleen





More information about the hotspot-runtime-dev mailing list