comparison src/share/vm/runtime/unhandledOops.hpp @ 10271:f9be75d21404

8012902: remove use of global operator new - take 2 Summary: The fix of 8010992, disable use of global operator new and new[] which caused failure on some tests. This takes two of the bugs also add ALLOW_OPERATOR_NEW_USAGE to prevent crash for third party code calling operator new of jvm on certain platforms. Reviewed-by: coleenp, dholmes, zgu Contributed-by: yumin.qi@oracle.com
author minqi
date Tue, 14 May 2013 09:41:12 -0700
parents f95d63e2154a
children de6a9e811145
comparison
equal deleted inserted replaced
10269:a9270d9ecb13 10271:f9be75d21404
46 // 46 //
47 47
48 class oop; 48 class oop;
49 class Thread; 49 class Thread;
50 50
51 class UnhandledOopEntry { 51 class UnhandledOopEntry : public CHeapObj<mtThread> {
52 friend class UnhandledOops; 52 friend class UnhandledOops;
53 private: 53 private:
54 oop* _oop_ptr; 54 oop* _oop_ptr;
55 bool _ok_for_gc; 55 bool _ok_for_gc;
56 address _pc; 56 address _pc;
60 UnhandledOopEntry(oop* op, address pc) : 60 UnhandledOopEntry(oop* op, address pc) :
61 _oop_ptr(op), _ok_for_gc(false), _pc(pc) {} 61 _oop_ptr(op), _ok_for_gc(false), _pc(pc) {}
62 }; 62 };
63 63
64 64
65 class UnhandledOops { 65 class UnhandledOops : public CHeapObj<mtThread> {
66 friend class Thread; 66 friend class Thread;
67 private: 67 private:
68 Thread* _thread; 68 Thread* _thread;
69 int _level; 69 int _level;
70 GrowableArray<UnhandledOopEntry> *_oop_list; 70 GrowableArray<UnhandledOopEntry> *_oop_list;