< prev index next >

src/hotspot/share/memory/iterator.hpp

Print this page
rev 49953 : imported patch 8201491-precleaning

@@ -316,12 +316,14 @@
 // exclusive resources, for instance). Additionally, the
 // closure also allows for aborting an ongoing iteration
 // by means of checking the return value from the polling
 // call.
 class YieldClosure : public StackObj {
-  public:
+public:
    virtual bool should_return() = 0;
+ // Yield on a fine-grain level. The check in case of not yielding should be very fast.
+ virtual bool should_return_fine_grain() { return false; }
 };
 
 // Abstract closure for serializing data (read or write).
 
 class SerializeClosure : public Closure {
< prev index next >