mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8031320: Use Intel RTM instructions for locks
Use RTM for inflated locks and stack locks. Reviewed-by: iveresov, twisti, roland, dcubed
This commit is contained in:
parent
315e4838e9
commit
97a51c5c2a
46 changed files with 1251 additions and 87 deletions
|
@ -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
|
||||
|
||||
|
@ -3622,6 +3625,10 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue