From 824e776c373bf89a4e79add27ee6811f358f431a Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Mon, 23 Oct 2017 11:46:38 +0200 Subject: [PATCH] 8189665: Change id parameter of G1ConcurrentMark::task() to uint Reviewed-by: sangheki, sjohanss --- src/hotspot/share/gc/g1/g1ConcurrentMark.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/gc/g1/g1ConcurrentMark.hpp b/src/hotspot/share/gc/g1/g1ConcurrentMark.hpp index fdbe1c2cd9d..7313509ba2a 100644 --- a/src/hotspot/share/gc/g1/g1ConcurrentMark.hpp +++ b/src/hotspot/share/gc/g1/g1ConcurrentMark.hpp @@ -431,8 +431,8 @@ class G1ConcurrentMark: public CHeapObj { 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]; }