1.1 --- a/src/share/vm/services/diagnosticFramework.hpp Wed Jun 27 15:23:36 2012 +0200 1.2 +++ b/src/share/vm/services/diagnosticFramework.hpp Thu Jun 28 17:03:16 2012 -0400 1.3 @@ -310,7 +310,7 @@ 1.4 // manages the status of the diagnostic command (hidden, enabled). A DCmdFactory 1.5 // has to be registered to make the diagnostic command available (see 1.6 // management.cpp) 1.7 -class DCmdFactory: public CHeapObj { 1.8 +class DCmdFactory: public CHeapObj<mtInternal> { 1.9 private: 1.10 static Mutex* _dcmdFactory_lock; 1.11 // Pointer to the next factory in the singly-linked list of registered 1.12 @@ -368,7 +368,7 @@ 1.13 DCmdFactory(DCmdClass::num_arguments(), enabled, hidden) { } 1.14 // Returns a C-heap allocated instance 1.15 virtual DCmd* create_Cheap_instance(outputStream* output) { 1.16 - return new (ResourceObj::C_HEAP) DCmdClass(output, true); 1.17 + return new (ResourceObj::C_HEAP, mtInternal) DCmdClass(output, true); 1.18 } 1.19 // Returns a resourceArea allocated instance 1.20 virtual DCmd* create_resource_instance(outputStream* output) {