test/hotspot/gtest/memory/test_metaspace_allocation.cpp
changeset 49401 0c71baee49a7
parent 49389 9ef2eee8ca7c
child 49852 4d3218e5f170
--- a/test/hotspot/gtest/memory/test_metaspace_allocation.cpp	Wed Mar 14 21:36:41 2018 +0100
+++ b/test/hotspot/gtest/memory/test_metaspace_allocation.cpp	Thu Mar 15 07:15:39 2018 +0100
@@ -73,7 +73,7 @@
   struct {
     size_t allocated;
     Mutex* lock;
-    Metaspace* space;
+    ClassLoaderMetaspace* space;
     bool is_empty() const { return allocated == 0; }
     bool is_full() const { return allocated >= MAX_PER_METASPACE_ALLOCATION_WORDSIZE; }
   } _spaces[NUM_PARALLEL_METASPACES];
@@ -104,7 +104,7 @@
     // Let every ~10th space be an anonymous one to test different allocation patterns.
     const Metaspace::MetaspaceType msType = (os::random() % 100 < 10) ?
       Metaspace::AnonymousMetaspaceType : Metaspace::StandardMetaspaceType;
-    _spaces[i].space = new Metaspace(_spaces[i].lock, msType);
+    _spaces[i].space = new ClassLoaderMetaspace(_spaces[i].lock, msType);
     _spaces[i].allocated = 0;
     ASSERT_TRUE(_spaces[i].space != NULL);
   }