< prev index next >

src/share/vm/gc/shenandoah/shenandoahHeap.hpp

Print this page
rev 13080 : Partial GC: Only evacuating threads push oop to work queue.

@@ -335,11 +335,15 @@
 
   inline bool allocated_after_complete_mark_start(HeapWord* addr) const;
   void set_complete_top_at_mark_start(HeapWord* region_base, HeapWord* addr);
   HeapWord* complete_top_at_mark_start(HeapWord* region_base);
 
-  inline oop  evacuate_object(oop src, Thread* thread);
+  // Evacuates object src. Returns the evacuated object if this thread
+  // succeeded, otherwise rolls back the evacuation and returns the
+  // evacuated object by the competing thread. 'succeeded' is an out
+  // param and set to true if this thread succeeded, otherwise to false.
+  inline oop  evacuate_object(oop src, Thread* thread, bool& evacuated);
   inline bool cancelled_concgc() const;
   inline void set_cancelled_concgc(bool v);
   inline bool try_cancel_concgc() const;
   void clear_cancelled_concgc();
 
< prev index next >