comparison src/share/vm/memory/cardTableModRefBS.cpp @ 14309:63a4eb8bcd23

8025856: Fix typos in the GC code Summary: Fix about 440 typos in comments in the VM code Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes
author jwilhelm
date Thu, 23 Jan 2014 14:47:23 +0100
parents d55c004e1d4d
children e5d78f318aec
comparison
equal deleted inserted replaced
14308:870aedf4ba4f 14309:63a4eb8bcd23
96 if (!heap_rs.is_reserved()) { 96 if (!heap_rs.is_reserved()) {
97 vm_exit_during_initialization("Could not reserve enough space for the " 97 vm_exit_during_initialization("Could not reserve enough space for the "
98 "card marking array"); 98 "card marking array");
99 } 99 }
100 100
101 // The assember store_check code will do an unsigned shift of the oop, 101 // The assembler store_check code will do an unsigned shift of the oop,
102 // then add it to byte_map_base, i.e. 102 // then add it to byte_map_base, i.e.
103 // 103 //
104 // _byte_map = byte_map_base + (uintptr_t(low_bound) >> card_shift) 104 // _byte_map = byte_map_base + (uintptr_t(low_bound) >> card_shift)
105 _byte_map = (jbyte*) heap_rs.base(); 105 _byte_map = (jbyte*) heap_rs.base();
106 byte_map_base = _byte_map - (uintptr_t(low_bound) >> card_shift); 106 byte_map_base = _byte_map - (uintptr_t(low_bound) >> card_shift);
241 MemRegion const old_region = _covered[ind]; 241 MemRegion const old_region = _covered[ind];
242 assert(old_region.start() == new_region.start(), "just checking"); 242 assert(old_region.start() == new_region.start(), "just checking");
243 if (new_region.word_size() != old_region.word_size()) { 243 if (new_region.word_size() != old_region.word_size()) {
244 // Commit new or uncommit old pages, if necessary. 244 // Commit new or uncommit old pages, if necessary.
245 MemRegion cur_committed = _committed[ind]; 245 MemRegion cur_committed = _committed[ind];
246 // Extend the end of this _commited region 246 // Extend the end of this _committed region
247 // to cover the end of any lower _committed regions. 247 // to cover the end of any lower _committed regions.
248 // This forms overlapping regions, but never interior regions. 248 // This forms overlapping regions, but never interior regions.
249 HeapWord* const max_prev_end = largest_prev_committed_end(ind); 249 HeapWord* const max_prev_end = largest_prev_committed_end(ind);
250 if (max_prev_end > cur_committed.end()) { 250 if (max_prev_end > cur_committed.end()) {
251 cur_committed.set_end(max_prev_end); 251 cur_committed.set_end(max_prev_end);
446 // setting n_par_threads to 0, then n_par_threads should be 446 // setting n_par_threads to 0, then n_par_threads should be
447 // equal to active_workers. When a different mechanism for shutting 447 // equal to active_workers. When a different mechanism for shutting
448 // off parallelism is used, then active_workers can be used in 448 // off parallelism is used, then active_workers can be used in
449 // place of n_par_threads. 449 // place of n_par_threads.
450 // This is an example of a path where n_par_threads is 450 // This is an example of a path where n_par_threads is
451 // set to 0 to turn off parallism. 451 // set to 0 to turn off parallelism.
452 // [7] CardTableModRefBS::non_clean_card_iterate() 452 // [7] CardTableModRefBS::non_clean_card_iterate()
453 // [8] CardTableRS::younger_refs_in_space_iterate() 453 // [8] CardTableRS::younger_refs_in_space_iterate()
454 // [9] Generation::younger_refs_in_space_iterate() 454 // [9] Generation::younger_refs_in_space_iterate()
455 // [10] OneContigSpaceCardGeneration::younger_refs_iterate() 455 // [10] OneContigSpaceCardGeneration::younger_refs_iterate()
456 // [11] CompactingPermGenGen::younger_refs_iterate() 456 // [11] CompactingPermGenGen::younger_refs_iterate()