src/share/vm/prims/jvmtiImpl.hpp

changeset 2445
7246a374a9f2
parent 2361
09b4dd4f152b
child 2467
9afee0b9fc1d
equal deleted inserted replaced
2444:e31d8c656c5b 2445:7246a374a9f2
115 void remove (int index); 115 void remove (int index);
116 // clear out all elements and release all heap space, notify listener 116 // clear out all elements and release all heap space, notify listener
117 void clear(); 117 void clear();
118 // apply f to every element and update the cache 118 // apply f to every element and update the cache
119 void oops_do(OopClosure* f); 119 void oops_do(OopClosure* f);
120 void gc_epilogue();
121 }; 120 };
122 121
123 122
124 /////////////////////////////////////////////////////////////// 123 ///////////////////////////////////////////////////////////////
125 // 124 //
147 int find(JvmtiBreakpoint& e) { return _cache.find((GrowableElement *) &e); } 146 int find(JvmtiBreakpoint& e) { return _cache.find((GrowableElement *) &e); }
148 void append(JvmtiBreakpoint& e) { _cache.append((GrowableElement *) &e); } 147 void append(JvmtiBreakpoint& e) { _cache.append((GrowableElement *) &e); }
149 void remove (int index) { _cache.remove(index); } 148 void remove (int index) { _cache.remove(index); }
150 void clear() { _cache.clear(); } 149 void clear() { _cache.clear(); }
151 void oops_do(OopClosure* f) { _cache.oops_do(f); } 150 void oops_do(OopClosure* f) { _cache.oops_do(f); }
152 void gc_epilogue() { _cache.gc_epilogue(); }
153 }; 151 };
154 152
155 153
156 /////////////////////////////////////////////////////////////// 154 ///////////////////////////////////////////////////////////////
157 // 155 //
276 JvmtiBreakpoints(void listener_fun(void *, address *)); 274 JvmtiBreakpoints(void listener_fun(void *, address *));
277 ~JvmtiBreakpoints(); 275 ~JvmtiBreakpoints();
278 276
279 int length(); 277 int length();
280 void oops_do(OopClosure* f); 278 void oops_do(OopClosure* f);
281 void gc_epilogue();
282 void print(); 279 void print();
283 280
284 int set(JvmtiBreakpoint& bp); 281 int set(JvmtiBreakpoint& bp);
285 int clear(JvmtiBreakpoint& bp); 282 int clear(JvmtiBreakpoint& bp);
286 void clearall_in_class_at_safepoint(klassOop klass); 283 void clearall_in_class_at_safepoint(klassOop klass);
326 323
327 // quickly test whether the bcp matches a cached breakpoint in the list 324 // quickly test whether the bcp matches a cached breakpoint in the list
328 static inline bool is_breakpoint(address bcp); 325 static inline bool is_breakpoint(address bcp);
329 326
330 static void oops_do(OopClosure* f); 327 static void oops_do(OopClosure* f);
331 static void gc_epilogue();
332 }; 328 };
333 329
334 // quickly test whether the bcp matches a cached breakpoint in the list 330 // quickly test whether the bcp matches a cached breakpoint in the list
335 bool JvmtiCurrentBreakpoints::is_breakpoint(address bcp) { 331 bool JvmtiCurrentBreakpoints::is_breakpoint(address bcp) {
336 address *bps = get_breakpoint_list(); 332 address *bps = get_breakpoint_list();

mercurial