< prev index next >
src/hotspot/share/gc/shared/genCollectedHeap.cpp
Print this page
rev 50373 : 8195097: Make it possible to process StringTable outside safepoint
Reviewed-by:
rev 50375 : [mq]: 8195097-stringtable-v2
@@ -857,13 +857,13 @@
assert(root_closure != NULL, "Must be set");
// All threads execute the following. A specific chunk of buckets
// from the StringTable are the individual tasks.
// Either we should be single threaded or have a ParState
- assert((scope->n_threads() <= 1) || par_state_string != NULL, "Parallel but not ParState");
+ assert((scope->n_threads() <= 1) || par_state_string != NULL, "Parallel but no ParState");
- if (scope->n_threads() > 1 && par_state_string != NULL) {
+ if (scope->n_threads() > 1) {
StringTable::possibly_parallel_oops_do(par_state_string, root_closure);
} else {
StringTable::oops_do(root_closure);
}
}
< prev index next >