< prev index next >
src/hotspot/share/gc/g1/g1CollectedHeap.hpp
Print this page
rev 58082 : 8214535: Parallel heap inspection for jmap histo (G1)
Summary: Add parallel heap inspection to speedup jmap -histo, this patch support G1
Reviewed-by:
Contributed-by: lzang
*** 1168,1177 ****
--- 1168,1188 ----
// Iteration functions.
// Iterate over all objects, calling "cl.do_object" on each.
virtual void object_iterate(ObjectClosure* cl);
+ virtual bool run_par_heap_inspect_task(KlassInfoTable* cit,
+ BoolObjectClosure* filter,
+ size_t* missed_count,
+ size_t thread_num);
+
+ // Parallel iterate over all objects.
+ virtual void object_iterate_parallel(ObjectClosure* cl, uint worker_id, HeapRegionClaimer* claimer);
+
+ // Parallel iterate over all objects, reture false if parallel not support.
+ virtual bool object_iterate_try_parallel(AbstractGangTask *task, size_t par_thread_num);
+
// Keep alive an object that was loaded with AS_NO_KEEPALIVE.
virtual void keep_alive(oop obj);
// Iterate over heap regions, in address order, terminating the
// iteration early if the "do_heap_region" method returns "true".
< prev index next >