--- a/hotspot/src/share/vm/memory/allocation.hpp Mon Dec 17 08:49:20 2012 +0100
+++ b/hotspot/src/share/vm/memory/allocation.hpp Mon Dec 17 15:25:26 2012 +0100
@@ -202,7 +202,7 @@
// Calling new or delete will result in fatal error.
class StackObj ALLOCATION_SUPER_CLASS_SPEC {
- public:
+ private:
void* operator new(size_t size);
void operator delete(void* p);
};
@@ -226,7 +226,7 @@
// be defined as a an empty string "".
//
class _ValueObj {
- public:
+ private:
void* operator new(size_t size);
void operator delete(void* p);
};