comparison src/share/vm/memory/blockOffsetTable.cpp @ 342:37f87013dfd8

6711316: Open source the Garbage-First garbage collector Summary: First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author ysr
date Thu, 05 Jun 2008 15:57:56 -0700
parents a61af66fc99e
children cff162798819
comparison
equal deleted inserted replaced
189:0b27f3512f9e 342:37f87013dfd8
182 assert(start_card > _array->index_for(_bottom), "Cannot be first card"); 182 assert(start_card > _array->index_for(_bottom), "Cannot be first card");
183 assert(_array->offset_array(start_card-1) <= N_words, 183 assert(_array->offset_array(start_card-1) <= N_words,
184 "Offset card has an unexpected value"); 184 "Offset card has an unexpected value");
185 size_t start_card_for_region = start_card; 185 size_t start_card_for_region = start_card;
186 u_char offset = max_jubyte; 186 u_char offset = max_jubyte;
187 for (int i = 0; i <= N_powers-1; i++) { 187 for (int i = 0; i < N_powers; i++) {
188 // -1 so that the the card with the actual offset is counted. Another -1 188 // -1 so that the the card with the actual offset is counted. Another -1
189 // so that the reach ends in this region and not at the start 189 // so that the reach ends in this region and not at the start
190 // of the next. 190 // of the next.
191 size_t reach = start_card - 1 + (power_to_cards_back(i+1) - 1); 191 size_t reach = start_card - 1 + (power_to_cards_back(i+1) - 1);
192 offset = N_words + i; 192 offset = N_words + i;