8189665: Change id parameter of G1ConcurrentMark::task() to uint
authortschatzl
Mon, 23 Oct 2017 11:46:38 +0200
changeset 47680 8b6597b0231e
parent 47679 4cfcb7be4984
child 47681 149745044e48
8189665: Change id parameter of G1ConcurrentMark::task() to uint Reviewed-by: sangheki, sjohanss
src/hotspot/share/gc/g1/g1ConcurrentMark.hpp
--- a/src/hotspot/share/gc/g1/g1ConcurrentMark.hpp	Mon Oct 23 11:46:25 2017 +0200
+++ b/src/hotspot/share/gc/g1/g1ConcurrentMark.hpp	Mon Oct 23 11:46:38 2017 +0200
@@ -431,8 +431,8 @@
   bool out_of_regions() { return _finger >= _heap_end; }
 
   // Returns the task with the given id
-  G1CMTask* task(int id) {
-    assert(0 <= id && id < (int) _active_tasks, "Task id %d not within active bounds up to %u", id, _active_tasks);
+  G1CMTask* task(uint id) {
+    assert(id < _active_tasks, "Task id %u not within active bounds up to %u", id, _active_tasks);
     return _tasks[id];
   }