hotspot/src/share/vm/memory/allocation.cpp
changeset 18065 7d53ab28f937
parent 18063 3a0a5b11ab14
parent 17858 c292f8791cca
child 18453 4056af328b00
--- a/hotspot/src/share/vm/memory/allocation.cpp	Fri May 31 10:27:12 2013 +0100
+++ b/hotspot/src/share/vm/memory/allocation.cpp	Mon Jun 17 11:17:49 2013 +0100
@@ -60,10 +60,11 @@
 void  _ValueObj::operator delete [](void* p)    { ShouldNotCallThis(); }
 
 void* MetaspaceObj::operator new(size_t size, ClassLoaderData* loader_data,
-                                size_t word_size, bool read_only, TRAPS) {
+                                 size_t word_size, bool read_only,
+                                 MetaspaceObj::Type type, TRAPS) {
   // Klass has it's own operator new
   return Metaspace::allocate(loader_data, word_size, read_only,
-                             Metaspace::NonClassType, CHECK_NULL);
+                             type, CHECK_NULL);
 }
 
 bool MetaspaceObj::is_shared() const {