changeset 46993 | dd0f91c85ffc |
parent 46778 | f504c6f2eea5 |
--- a/hotspot/src/share/vm/gc/g1/g1RemSet.cpp Mon Aug 28 02:55:31 2017 -0700 +++ b/hotspot/src/share/vm/gc/g1/g1RemSet.cpp Mon Aug 28 13:31:20 2017 +0200 @@ -243,7 +243,7 @@ bool marked_as_dirty = Atomic::cmpxchg(Dirty, &_in_dirty_region_buffer[region], Clean) == Clean; if (marked_as_dirty) { - size_t allocated = Atomic::add(1, &_cur_dirty_region) - 1; + size_t allocated = Atomic::add(1u, &_cur_dirty_region) - 1; _dirty_region_buffer[allocated] = region; } }