--- a/src/hotspot/share/code/vtableStubs.cpp Thu Apr 25 05:54:54 2019 -0700
+++ b/src/hotspot/share/code/vtableStubs.cpp Thu Apr 25 10:56:31 2019 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -125,7 +125,7 @@
void VtableStubs::initialize() {
VtableStub::_receiver_location = SharedRuntime::name_for_receiver();
{
- MutexLockerEx ml(VtableStubs_lock, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(VtableStubs_lock, Mutex::_no_safepoint_check_flag);
assert(_number_of_vtable_stubs == 0, "potential performance bug: VtableStubs initialized more than once");
assert(is_power_of_2(N), "N must be a power of 2");
for (int i = 0; i < N; i++) {
@@ -211,7 +211,7 @@
VtableStub* s;
{
- MutexLockerEx ml(VtableStubs_lock, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(VtableStubs_lock, Mutex::_no_safepoint_check_flag);
s = ShareVtableStubs ? lookup(is_vtable_stub, vtable_index) : NULL;
if (s == NULL) {
if (is_vtable_stub) {
@@ -271,7 +271,7 @@
}
VtableStub* VtableStubs::entry_point(address pc) {
- MutexLockerEx ml(VtableStubs_lock, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(VtableStubs_lock, Mutex::_no_safepoint_check_flag);
VtableStub* stub = (VtableStub*)(pc - VtableStub::entry_offset());
uint hash = VtableStubs::hash(stub->is_vtable_stub(), stub->index());
VtableStub* s;