8197772: metaspace uses global operator new/delete for gtest testing
authorcoleenp
Wed, 14 Feb 2018 09:09:37 -0500
changeset 48971 b2bb70f5effd
parent 48970 c81bab0287ab
child 48972 e9b007212236
8197772: metaspace uses global operator new/delete for gtest testing Summary: Inherit ChunkManagerReturnTestImpl from CHeapObj Reviewed-by: kbarrett, zgu
src/hotspot/share/memory/metaspace.cpp
--- a/src/hotspot/share/memory/metaspace.cpp	Wed Feb 14 09:03:31 2018 -0500
+++ b/src/hotspot/share/memory/metaspace.cpp	Wed Feb 14 09:09:37 2018 -0500
@@ -4372,7 +4372,7 @@
 // ChunkManagerReturnTest stresses taking/returning chunks from the ChunkManager. It takes and
 // returns chunks from/to the ChunkManager while keeping track of the expected ChunkManager
 // content.
-class ChunkManagerReturnTestImpl {
+class ChunkManagerReturnTestImpl : public CHeapObj<mtClass> {
 
   VirtualSpaceNode _vsn;
   ChunkManager _cm;