--- a/hotspot/src/share/vm/runtime/handles.cpp Tue May 14 11:34:30 2013 +0400
+++ b/hotspot/src/share/vm/runtime/handles.cpp Tue May 14 09:41:12 2013 -0700
@@ -179,6 +179,22 @@
_thread->set_last_handle_mark(previous_handle_mark());
}
+void* HandleMark::operator new(size_t size) {
+ return AllocateHeap(size, mtThread);
+}
+
+void* HandleMark::operator new [] (size_t size) {
+ return AllocateHeap(size, mtThread);
+}
+
+void HandleMark::operator delete(void* p) {
+ FreeHeap(p, mtThread);
+}
+
+void HandleMark::operator delete[](void* p) {
+ FreeHeap(p, mtThread);
+}
+
#ifdef ASSERT
NoHandleMark::NoHandleMark() {