--- old/src/share/vm/gc/g1/g1CardLiveData.cpp 2017-08-22 15:36:27.089167737 +0200 +++ new/src/share/vm/gc/g1/g1CardLiveData.cpp 2017-08-22 15:36:26.901167744 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -409,7 +409,7 @@ virtual void work(uint worker_id) { while (true) { - size_t to_process = Atomic::add(1, &_cur_chunk) - 1; + size_t to_process = Atomic::add(1u, &_cur_chunk) - 1; if (to_process >= _num_chunks) { break; }