Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.cpp @ 20278:2c6ef90f030a
8049421: G1 Class Unloading after completing a concurrent mark cycle
Reviewed-by: tschatzl, ehelin, brutisso, coleenp, roland, iveresov
Contributed-by: stefan.karlsson@oracle.com, mikael.gerdin@oracle.com
author | stefank |
---|---|
date | Mon, 07 Jul 2014 10:12:40 +0200 |
parents | 4af19b914f53 |
children | 833b0f92429a |
comparison
equal
deleted
inserted
replaced
20277:882004b9e7e1 | 20278:2c6ef90f030a |
---|---|
4179 // root groups. Overhead should be small enough to use all the time, | 4179 // root groups. Overhead should be small enough to use all the time, |
4180 // even in sequential code. | 4180 // even in sequential code. |
4181 SharedHeap* sh = SharedHeap::heap(); | 4181 SharedHeap* sh = SharedHeap::heap(); |
4182 // Cannot yet substitute active_workers for n_par_threads | 4182 // Cannot yet substitute active_workers for n_par_threads |
4183 // because of G1CollectedHeap::verify() use of | 4183 // because of G1CollectedHeap::verify() use of |
4184 // SharedHeap::process_strong_roots(). n_par_threads == 0 will | 4184 // SharedHeap::process_roots(). n_par_threads == 0 will |
4185 // turn off parallelism in process_strong_roots while active_workers | 4185 // turn off parallelism in process_roots while active_workers |
4186 // is being used for parallelism elsewhere. | 4186 // is being used for parallelism elsewhere. |
4187 bool is_par = sh->n_par_threads() > 0; | 4187 bool is_par = sh->n_par_threads() > 0; |
4188 assert(!is_par || | 4188 assert(!is_par || |
4189 (SharedHeap::heap()->n_par_threads() == | 4189 (SharedHeap::heap()->n_par_threads() == |
4190 SharedHeap::heap()->workers()->active_workers()), "Mismatch"); | 4190 SharedHeap::heap()->workers()->active_workers()), "Mismatch"); |