@@ -248,14 +248,10 @@ BlockOffsetArray::alloc_block(HeapWord* blk_start, HeapWord* blk_end) {
248
248
single_block (blk_start, blk_end);
249
249
}
250
250
251
- // Action_mark - update the BOT for the block [blk_start, blk_end).
252
- // Current typical use is for splitting a block.
253
- // Action_single - udpate the BOT for an allocation.
254
- // Action_verify - BOT verification.
255
251
void
256
252
BlockOffsetArray::do_block_internal (HeapWord* blk_start,
257
253
HeapWord* blk_end,
258
- Action action, bool reducing) {
254
+ bool reducing) {
259
255
assert (_sp->is_in_reserved (blk_start),
260
256
" reference must be into the space" );
261
257
assert (_sp->is_in_reserved (blk_end-1 ),
@@ -284,33 +280,13 @@ BlockOffsetArray::do_block_internal(HeapWord* blk_start,
284
280
}
285
281
assert (start_index <= end_index, " monotonicity of index_for()" );
286
282
assert (boundary <= (HeapWord*)boundary_before_end, " tautology" );
287
- switch (action) {
288
- case Action_mark: {
289
- if (init_to_zero ()) {
290
- _array->set_offset_array (start_index, boundary, blk_start, reducing);
291
- break ;
292
- } // Else fall through to the next case
293
- }
294
- case Action_single: {
295
- _array->set_offset_array (start_index, boundary, blk_start, reducing);
296
- // We have finished marking the "offset card". We need to now
297
- // mark the subsequent cards that this blk spans.
298
- if (start_index < end_index) {
299
- HeapWord* rem_st = _array->address_for_index (start_index) + BOTConstants::card_size_in_words ();
300
- HeapWord* rem_end = _array->address_for_index (end_index) + BOTConstants::card_size_in_words ();
301
- set_remainder_to_point_to_start (rem_st, rem_end, reducing);
302
- }
303
- break ;
304
- }
305
- case Action_check: {
306
- _array->check_offset_array (start_index, boundary, blk_start);
307
- // We have finished checking the "offset card". We need to now
308
- // check the subsequent cards that this blk spans.
309
- check_all_cards (start_index + 1 , end_index);
310
- break ;
311
- }
312
- default :
313
- ShouldNotReachHere ();
283
+ _array->set_offset_array (start_index, boundary, blk_start, reducing);
284
+ // We have finished marking the "offset card". We need to now
285
+ // mark the subsequent cards that this blk spans.
286
+ if (start_index < end_index) {
287
+ HeapWord* rem_st = _array->address_for_index (start_index) + BOTConstants::card_size_in_words ();
288
+ HeapWord* rem_end = _array->address_for_index (end_index) + BOTConstants::card_size_in_words ();
289
+ set_remainder_to_point_to_start (rem_st, rem_end, reducing);
314
290
}
315
291
}
316
292
}
@@ -322,7 +298,7 @@ BlockOffsetArray::do_block_internal(HeapWord* blk_start,
322
298
void
323
299
BlockOffsetArray::single_block (HeapWord* blk_start,
324
300
HeapWord* blk_end) {
325
- do_block_internal (blk_start, blk_end, Action_single );
301
+ do_block_internal (blk_start, blk_end);
326
302
}
327
303
328
304
void BlockOffsetArray::verify () const {
0 commit comments