changeset 47680:8b6597b0231e

8189665: Change id parameter of G1ConcurrentMark::task() to uint Reviewed-by: sangheki, sjohanss
author tschatzl
date Mon, 23 Oct 2017 11:46:38 +0200
parents 4cfcb7be4984
children 149745044e48
files src/hotspot/share/gc/g1/g1ConcurrentMark.hpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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];
   }