Mercurial > hg > graal-compiler
comparison src/share/vm/memory/sharedHeap.cpp @ 4728:441e946dc1af
7121618: Change type of number of GC workers to unsigned int.
Summary: Change variables representing the number of GC workers to uint from int and size_t. Change the parameter in work(int i) to work(uint worker_id).
Reviewed-by: brutisso, tonyp
author | jmasa |
---|---|
date | Wed, 14 Dec 2011 13:34:57 -0800 |
parents | bca17e38de00 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
4727:67fdcb391461 | 4728:441e946dc1af |
---|---|
92 return Heap_lock->owned_by_self() | 92 return Heap_lock->owned_by_self() |
93 || ( (t->is_GC_task_thread() || t->is_VM_thread()) | 93 || ( (t->is_GC_task_thread() || t->is_VM_thread()) |
94 && _thread_holds_heap_lock_for_gc); | 94 && _thread_holds_heap_lock_for_gc); |
95 } | 95 } |
96 | 96 |
97 void SharedHeap::set_par_threads(int t) { | 97 void SharedHeap::set_par_threads(uint t) { |
98 assert(t == 0 || !UseSerialGC, "Cannot have parallel threads"); | 98 assert(t == 0 || !UseSerialGC, "Cannot have parallel threads"); |
99 _n_par_threads = t; | 99 _n_par_threads = t; |
100 _process_strong_tasks->set_n_threads(t); | 100 _process_strong_tasks->set_n_threads(t); |
101 } | 101 } |
102 | 102 |