Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/heapRegion.cpp @ 6011:f7a8920427a6
7145441: G1: collection set chooser-related cleanup
Summary: Cleanup of the CSet chooser class: standardize on uints for region num and indexes (instead of int, jint, etc.), make the method / field naming style more consistent, remove a lot of dead code.
Reviewed-by: johnc, brutisso
author | tonyp |
---|---|
date | Wed, 18 Apr 2012 13:39:55 -0400 |
parents | 720b6a76dd9d |
children | 8a2e5a6a19a4 |
comparison
equal
deleted
inserted
replaced
6010:720b6a76dd9d | 6011:f7a8920427a6 |
---|---|
368 HeapRegionRemSet* hrrs = rem_set(); | 368 HeapRegionRemSet* hrrs = rem_set(); |
369 if (hrrs != NULL) hrrs->clear(); | 369 if (hrrs != NULL) hrrs->clear(); |
370 _claimed = InitialClaimValue; | 370 _claimed = InitialClaimValue; |
371 } | 371 } |
372 zero_marked_bytes(); | 372 zero_marked_bytes(); |
373 set_sort_index(-1); | |
374 | 373 |
375 _offsets.resize(HeapRegion::GrainWords); | 374 _offsets.resize(HeapRegion::GrainWords); |
376 init_top_at_mark_start(); | 375 init_top_at_mark_start(); |
377 if (clear_space) clear(SpaceDecorator::Mangle); | 376 if (clear_space) clear(SpaceDecorator::Mangle); |
378 } | 377 } |
489 _hrs_index(hrs_index), | 488 _hrs_index(hrs_index), |
490 _humongous_type(NotHumongous), _humongous_start_region(NULL), | 489 _humongous_type(NotHumongous), _humongous_start_region(NULL), |
491 _in_collection_set(false), | 490 _in_collection_set(false), |
492 _next_in_special_set(NULL), _orig_end(NULL), | 491 _next_in_special_set(NULL), _orig_end(NULL), |
493 _claimed(InitialClaimValue), _evacuation_failed(false), | 492 _claimed(InitialClaimValue), _evacuation_failed(false), |
494 _prev_marked_bytes(0), _next_marked_bytes(0), _sort_index(-1), | 493 _prev_marked_bytes(0), _next_marked_bytes(0), _gc_efficiency(0.0), |
495 _gc_efficiency(0.0), | |
496 _young_type(NotYoung), _next_young_region(NULL), | 494 _young_type(NotYoung), _next_young_region(NULL), |
497 _next_dirty_cards_region(NULL), _next(NULL), _pending_removal(false), | 495 _next_dirty_cards_region(NULL), _next(NULL), _pending_removal(false), |
498 #ifdef ASSERT | 496 #ifdef ASSERT |
499 _containing_set(NULL), | 497 _containing_set(NULL), |
500 #endif // ASSERT | 498 #endif // ASSERT |