< prev index next >

src/share/vm/gc/g1/g1CardLiveData.cpp

Print this page
rev 13486 : [mq]: add_fix_calls

*** 1,7 **** /* ! * Copyright (c) 2016, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 407,417 **** static size_t chunk_size() { return M; } virtual void work(uint worker_id) { while (true) { ! size_t to_process = Atomic::add(1, &_cur_chunk) - 1; if (to_process >= _num_chunks) { break; } BitMap::idx_t start = M * BitsPerByte * to_process; --- 407,417 ---- static size_t chunk_size() { return M; } virtual void work(uint worker_id) { while (true) { ! size_t to_process = Atomic::add(1u, &_cur_chunk) - 1; if (to_process >= _num_chunks) { break; } BitMap::idx_t start = M * BitsPerByte * to_process;
< prev index next >