< prev index next >

src/share/vm/memory/allocation.cpp

Print this page

        

@@ -662,10 +662,11 @@
 
 //--------------------------------------------------------------------------------------
 // Non-product code
 
 #ifndef PRODUCT
+#ifndef SHARK
 // The global operator new should never be called since it will usually indicate
 // a memory leak.  Use CHeapObj as the base class of such objects to make it explicit
 // that they're allocated on the C heap.
 // Commented out in product version to avoid conflicts with third-party C++ native code.
 //

@@ -720,10 +721,12 @@
 
 void operator delete [](void* p) throw() {
   fatal("Should not call global delete []");
 }
 
+#endif // SHARK
+
 void AllocatedObj::print() const       { print_on(tty); }
 void AllocatedObj::print_value() const { print_value_on(tty); }
 
 void AllocatedObj::print_on(outputStream* st) const {
   st->print_cr("AllocatedObj(" INTPTR_FORMAT ")", p2i(this));
< prev index next >