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:
Zhengyu Gu 2018-08-27 17:20:29 -04:00
parent f71d1cb124
commit 083110efa9
4 changed files with 15 additions and 15 deletions

View file

@ -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);