< prev index next >

src/hotspot/share/memory/heapInspection.hpp

Print this page

        

@@ -221,10 +221,14 @@
   static void find_instances_at_safepoint(Klass* k, GrowableArray<oop>* result) NOT_SERVICES_RETURN;
  private:
   void iterate_over_heap(KlassInfoTable* cit, BoolObjectClosure* filter = NULL);
 };
 
+// Task for parallel heap inspection. The parallel inspection can be fail
+// because of native OOM when allocation memory for TL-KlassInfoTable, it
+// will set success to false when OOM so serial inspection can be tried.
+// see work() implementation at heapInspection.cpp for more info.
 class ParHeapInspectTask : public AbstractGangTask {
  private:
   ParallelObjectIterator* _poi;
   KlassInfoTable* _shared_cit;
   BoolObjectClosure* _filter;

@@ -246,9 +250,13 @@
 
   uint missed_count() const {
     return _shared_missed_count;
   }
 
+  bool success() {
+    return _success;
+  }
+
   virtual void work(uint worker_id);
 };
 
 #endif // SHARE_MEMORY_HEAPINSPECTION_HPP
< prev index next >