< prev index next >

src/hotspot/share/memory/iterator.hpp

Print this page
rev 49897 : [mq]: 8201491-precleaning

*** 316,327 **** // 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: virtual bool should_return() = 0; }; // Abstract closure for serializing data (read or write). class SerializeClosure : public Closure { --- 316,329 ---- // 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: 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 >