hotspot/src/share/vm/memory/cardTableRS.cpp
changeset 30147 af9a41999c6e
parent 29690 02ce43f0f95a
child 30155 a3a254791703
equal deleted inserted replaced
29809:c59a5f161524 30147:af9a41999c6e
   165   DirtyCardToOopClosure* dirty_card_closure, CardTableRS* ct) :
   165   DirtyCardToOopClosure* dirty_card_closure, CardTableRS* ct) :
   166     _dirty_card_closure(dirty_card_closure), _ct(ct) {
   166     _dirty_card_closure(dirty_card_closure), _ct(ct) {
   167     // Cannot yet substitute active_workers for n_par_threads
   167     // Cannot yet substitute active_workers for n_par_threads
   168     // in the case where parallelism is being turned off by
   168     // in the case where parallelism is being turned off by
   169     // setting n_par_threads to 0.
   169     // setting n_par_threads to 0.
   170     _is_par = (SharedHeap::heap()->n_par_threads() > 0);
   170     _is_par = (GenCollectedHeap::heap()->n_par_threads() > 0);
   171     assert(!_is_par ||
   171     assert(!_is_par ||
   172            (SharedHeap::heap()->n_par_threads() ==
   172            (GenCollectedHeap::heap()->n_par_threads() ==
   173             SharedHeap::heap()->workers()->active_workers()), "Mismatch");
   173             GenCollectedHeap::heap()->workers()->active_workers()), "Mismatch");
   174 }
   174 }
   175 
   175 
   176 bool ClearNoncleanCardWrapper::is_word_aligned(jbyte* entry) {
   176 bool ClearNoncleanCardWrapper::is_word_aligned(jbyte* entry) {
   177   return (((intptr_t)entry) & (BytesPerWord-1)) == 0;
   177   return (((intptr_t)entry) & (BytesPerWord-1)) == 0;
   178 }
   178 }