mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8209852: Counters in StringCleaningTask should be type of size_t
Converted counters to size_t type to avoid casting Reviewed-by: coleenp
This commit is contained in:
parent
f71d1cb124
commit
083110efa9
4 changed files with 15 additions and 15 deletions
|
@ -54,8 +54,8 @@ StringCleaningTask::~StringCleaningTask() {
|
|||
}
|
||||
|
||||
void StringCleaningTask::work(uint worker_id) {
|
||||
int strings_processed = 0;
|
||||
int strings_removed = 0;
|
||||
size_t strings_processed = 0;
|
||||
size_t strings_removed = 0;
|
||||
if (_process_strings) {
|
||||
StringTable::possibly_parallel_unlink(&_par_state_string, _is_alive, &strings_processed, &strings_removed);
|
||||
Atomic::add(strings_processed, &_strings_processed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue