8067247: Crash: assert(method_holder->data() == 0 ...) failed: a) MT-unsafe modification of inline cache
Summary: Made invoker LambdaForm instance & its compiled form lifetime tightly coupled.
Reviewed-by: vlivanov
--- a/test/lib/sun/hotspot/WhiteBox.java Thu Mar 24 13:45:45 2016 -0700
+++ b/test/lib/sun/hotspot/WhiteBox.java Mon Apr 04 02:10:46 2016 -0700
@@ -344,7 +344,13 @@
}
public native Object[] getCodeBlob(long addr);
- public native void clearInlineCaches();
+ private native void clearInlineCaches0(boolean preserve_static_stubs);
+ public void clearInlineCaches() {
+ clearInlineCaches0(false);
+ }
+ public void clearInlineCaches(boolean preserve_static_stubs) {
+ clearInlineCaches0(preserve_static_stubs);
+ }
// Intered strings
public native boolean isInStringTable(String str);