--- a/test/hotspot/gtest/memory/test_metaspace_allocation.cpp Thu Apr 25 05:54:54 2019 -0700
+++ b/test/hotspot/gtest/memory/test_metaspace_allocation.cpp Thu Apr 25 10:56:31 2019 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, SAP.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@@ -108,7 +108,7 @@
{
// Pull lock during space creation, since this is what happens in the VM too
// (see ClassLoaderData::metaspace_non_null(), which we mimick here).
- MutexLockerEx ml(_spaces[i].lock, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(_spaces[i].lock, Mutex::_no_safepoint_check_flag);
_spaces[i].space = new ClassLoaderMetaspace(_spaces[i].lock, msType);
}
_spaces[i].allocated = 0;