--- a/hotspot/src/share/vm/runtime/thread.cpp Tue Apr 01 07:46:51 2014 +0200
+++ b/hotspot/src/share/vm/runtime/thread.cpp Tue Apr 01 15:37:15 2014 +0200
@@ -107,6 +107,9 @@
#include "opto/c2compiler.hpp"
#include "opto/idealGraphPrinter.hpp"
#endif
+#if INCLUDE_RTM_OPT
+#include "runtime/rtmLocking.hpp"
+#endif
#ifdef DTRACE_ENABLED
@@ -3621,6 +3624,10 @@
BiasedLocking::init();
+#if INCLUDE_RTM_OPT
+ RTMLockingCounters::init();
+#endif
+
if (JDK_Version::current().post_vm_init_hook_enabled()) {
call_postVMInitHook(THREAD);
// The Java side of PostVMInitHook.run must deal with all