8185580: Refactor Threads::possibly_parallel_oops_do() to use Threads::parallel_java_threads_do()

Reviewed-by: dholmes, coleenp
This commit is contained in:
Roman Kennke 2017-10-17 18:54:03 +02:00
parent 9adfa12663
commit b788c73f53
3 changed files with 20 additions and 20 deletions

View file

@ -563,7 +563,7 @@ public:
void work(uint worker_id) {
// All threads deflate monitors and mark nmethods (if necessary).
Threads::parallel_java_threads_do(&_cleanup_threads_cl);
Threads::possibly_parallel_threads_do(true, &_cleanup_threads_cl);
if (!_subtasks.is_task_claimed(SafepointSynchronize::SAFEPOINT_CLEANUP_DEFLATE_MONITORS)) {
const char* name = "deflating idle monitors";