< prev index next >
src/share/vm/memory/cardTableRS.cpp
Print this page
*** 165,178 ****
DirtyCardToOopClosure* dirty_card_closure, CardTableRS* ct) :
_dirty_card_closure(dirty_card_closure), _ct(ct) {
// Cannot yet substitute active_workers for n_par_threads
// in the case where parallelism is being turned off by
// setting n_par_threads to 0.
! _is_par = (SharedHeap::heap()->n_par_threads() > 0);
assert(!_is_par ||
! (SharedHeap::heap()->n_par_threads() ==
! SharedHeap::heap()->workers()->active_workers()), "Mismatch");
}
bool ClearNoncleanCardWrapper::is_word_aligned(jbyte* entry) {
return (((intptr_t)entry) & (BytesPerWord-1)) == 0;
}
--- 165,178 ----
DirtyCardToOopClosure* dirty_card_closure, CardTableRS* ct) :
_dirty_card_closure(dirty_card_closure), _ct(ct) {
// Cannot yet substitute active_workers for n_par_threads
// in the case where parallelism is being turned off by
// setting n_par_threads to 0.
! _is_par = (GenCollectedHeap::heap()->n_par_threads() > 0);
assert(!_is_par ||
! (GenCollectedHeap::heap()->n_par_threads() ==
! GenCollectedHeap::heap()->workers()->active_workers()), "Mismatch");
}
bool ClearNoncleanCardWrapper::is_word_aligned(jbyte* entry) {
return (((intptr_t)entry) & (BytesPerWord-1)) == 0;
}
< prev index next >