--- old/src/share/vm/gc/g1/dirtyCardQueue.hpp 2016-03-04 02:58:10.191963281 -0500 +++ new/src/share/vm/gc/g1/dirtyCardQueue.hpp 2016-03-04 02:58:10.099962825 -0500 @@ -52,22 +52,24 @@ // Process queue entries and release resources. void flush() { flush_impl(); } - // Apply the closure to all active elements, from index to size. If - // all closure applications return true, then returns true. Stops - // processing after the first false closure application and returns - // false. If "consume" is true, index is updated to follow the last - // processed element. + // Apply the closure to the elements from _index to _sz. If all + // closure applications return true, then returns true. Stops + // processing after the first closure application that returns + // false, and returns false from this function. If "consume" is + // true, _index is updated to follow the last processed element. bool apply_closure(CardTableEntryClosure* cl, bool consume = true, uint worker_i = 0); - // Apply the closure to all active elements of "node", from it's - // index to sz. If all closure applications return true, then - // returns true. Stops processing after the first false closure - // application and returns false. If "consume" is true, the node's - // index is updated to follow the last processed element. + // Apply the closure to the elements of "node" from it's index to + // buffer_size. If all closure applications return true, then + // returns true. Stops processing after the first closure + // application that returns false, and returns false from this + // function. If "consume" is true, the node's index is updated to + // follow the last processed element. static bool apply_closure_to_buffer(CardTableEntryClosure* cl, - BufferNode* node, size_t sz, + BufferNode* node, + size_t buffer_size, bool consume = true, uint worker_i = 0); void **get_buf() { return _buf;} @@ -95,7 +97,6 @@ DirtyCardQueue _shared_dirty_card_queue; - // Override. bool mut_process_buffer(BufferNode* node); // Protected by the _cbl_mon. @@ -135,7 +136,7 @@ // returns false. If a completed buffer exists, but is only // partially completed before a "yield" happens, the partially // completed buffer (with its index updated to exclude the processed - // eleemnts) is returned to the completed buffer set, and this call + // elements) is returned to the completed buffer set, and this call // returns false. bool apply_closure_to_completed_buffer(CardTableEntryClosure* cl, uint worker_i,