hotspot/src/share/vm/gc/g1/ptrQueue.cpp
changeset 46630 75aa3e39d02c
parent 46443 cdb638b5ec53
child 46685 b218dfc2853a
--- a/hotspot/src/share/vm/gc/g1/ptrQueue.cpp	Wed Jul 05 11:03:19 2017 -0700
+++ b/hotspot/src/share/vm/gc/g1/ptrQueue.cpp	Thu Jul 06 01:50:26 2017 +0200
@@ -238,8 +238,9 @@
 bool PtrQueueSet::process_or_enqueue_complete_buffer(BufferNode* node) {
   if (Thread::current()->is_Java_thread()) {
     // We don't lock. It is fine to be epsilon-precise here.
-    if (_max_completed_queue == 0 || _max_completed_queue > 0 &&
-        _n_completed_buffers >= _max_completed_queue + _completed_queue_padding) {
+    if (_max_completed_queue == 0 ||
+        (_max_completed_queue > 0 &&
+          _n_completed_buffers >= _max_completed_queue + _completed_queue_padding)) {
       bool b = mut_process_buffer(node);
       if (b) {
         // True here means that the buffer hasn't been deallocated and the caller may reuse it.