8189665: Change id parameter of G1ConcurrentMark::task() to uint
Reviewed-by: sangheki, sjohanss
--- 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];
}