Blob Blame History Raw
# HG changeset patch
# User andrew
# Date 1379536490 -3600
#      Wed Sep 18 21:34:50 2013 +0100
# Node ID af221c82682c974e06cc78b24808262d9ffc5af2
# Parent  4fc9d4d964adf1f5316d81d1db1813ffd9f2286b
Cast should use same type as GCDrainStackTargetSize (uintx).

diff --git a/src/share/vm/gc_implementation/g1/concurrentMark.cpp b/src/share/vm/gc_implementation/g1/concurrentMark.cpp
--- openjdk/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
+++ openjdk/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
@@ -3632,7 +3632,7 @@
   // of things to do) or totally (at the very end).
   size_t target_size;
   if (partially) {
-    target_size = MIN2((size_t)_task_queue->max_elems()/3, GCDrainStackTargetSize);
+    target_size = MIN2((uintx)_task_queue->max_elems()/3, GCDrainStackTargetSize);
   } else {
     target_size = 0;
   }