--- a/hotspot/src/share/vm/runtime/thread.cpp Mon Feb 15 20:02:51 2016 +0300
+++ b/hotspot/src/share/vm/runtime/thread.cpp Mon Feb 15 20:26:02 2016 +0300
@@ -3600,6 +3600,9 @@
vm_exit_during_initialization("Failed to initialize tracing backend");
}
+ // No more stub generation allowed after that point.
+ StubCodeDesc::freeze();
+
// Set flag that basic initialization has completed. Used by exceptions and various
// debug stuff, that does not work until all basic classes have been initialized.
set_init_completed();