changeset 6768 | 71338ecb7813 |
parent 5547 | f4b087cbb361 |
child 7397 | 5b173b4ca846 |
--- a/hotspot/src/share/vm/gc_implementation/g1/ptrQueue.hpp Fri Oct 01 21:48:40 2010 -0700 +++ b/hotspot/src/share/vm/gc_implementation/g1/ptrQueue.hpp Fri Oct 01 16:43:05 2010 -0400 @@ -89,6 +89,10 @@ return _buf == NULL ? 0 : _sz - _index; } + bool is_empty() { + return _buf == NULL || _sz == _index; + } + // Set the "active" property of the queue to "b". An enqueue to an // inactive thread is a no-op. Setting a queue to inactive resets its // log to the empty state.