Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/heapRegion.cpp @ 677:96b229c54d1e
6543938: G1: remove the concept of popularity
Reviewed-by: iveresov, tonyp
author | apetrusenko |
---|---|
date | Wed, 25 Mar 2009 13:10:54 -0700 |
parents | ad8c8ca4ab0f |
children | 2b6c55e36143 |
comparison
equal
deleted
inserted
replaced
649:59f139e8a8d1 | 677:96b229c54d1e |
---|---|
102 if (!_g1h->full_collection()) { | 102 if (!_g1h->full_collection()) { |
103 HeapRegion* from = _g1h->heap_region_containing(p); | 103 HeapRegion* from = _g1h->heap_region_containing(p); |
104 HeapRegion* to = _g1h->heap_region_containing(*p); | 104 HeapRegion* to = _g1h->heap_region_containing(*p); |
105 if (from != NULL && to != NULL && | 105 if (from != NULL && to != NULL && |
106 from != to && | 106 from != to && |
107 !to->popular() && | |
108 !to->isHumongous()) { | 107 !to->isHumongous()) { |
109 jbyte cv_obj = *_bs->byte_for_const(_containing_obj); | 108 jbyte cv_obj = *_bs->byte_for_const(_containing_obj); |
110 jbyte cv_field = *_bs->byte_for_const(p); | 109 jbyte cv_field = *_bs->byte_for_const(p); |
111 const jbyte dirty = CardTableModRefBS::dirty_card_val(); | 110 const jbyte dirty = CardTableModRefBS::dirty_card_val(); |
112 | 111 |
283 if (hrrs != NULL) hrrs->clear(); | 282 if (hrrs != NULL) hrrs->clear(); |
284 _claimed = InitialClaimValue; | 283 _claimed = InitialClaimValue; |
285 } | 284 } |
286 zero_marked_bytes(); | 285 zero_marked_bytes(); |
287 set_sort_index(-1); | 286 set_sort_index(-1); |
288 if ((uintptr_t)bottom() >= (uintptr_t)g1h->popular_object_boundary()) | |
289 set_popular(false); | |
290 | 287 |
291 _offsets.resize(HeapRegion::GrainWords); | 288 _offsets.resize(HeapRegion::GrainWords); |
292 init_top_at_mark_start(); | 289 init_top_at_mark_start(); |
293 if (clear_space) clear(SpaceDecorator::Mangle); | 290 if (clear_space) clear(SpaceDecorator::Mangle); |
294 } | 291 } |
369 _in_collection_set(false), _is_gc_alloc_region(false), | 366 _in_collection_set(false), _is_gc_alloc_region(false), |
370 _is_on_free_list(false), _is_on_unclean_list(false), | 367 _is_on_free_list(false), _is_on_unclean_list(false), |
371 _next_in_special_set(NULL), _orig_end(NULL), | 368 _next_in_special_set(NULL), _orig_end(NULL), |
372 _claimed(InitialClaimValue), _evacuation_failed(false), | 369 _claimed(InitialClaimValue), _evacuation_failed(false), |
373 _prev_marked_bytes(0), _next_marked_bytes(0), _sort_index(-1), | 370 _prev_marked_bytes(0), _next_marked_bytes(0), _sort_index(-1), |
374 _popularity(NotPopular), | |
375 _young_type(NotYoung), _next_young_region(NULL), | 371 _young_type(NotYoung), _next_young_region(NULL), |
376 _young_index_in_cset(-1), _surv_rate_group(NULL), _age_index(-1), | 372 _young_index_in_cset(-1), _surv_rate_group(NULL), _age_index(-1), |
377 _rem_set(NULL), _zfs(NotZeroFilled) | 373 _rem_set(NULL), _zfs(NotZeroFilled) |
378 { | 374 { |
379 _orig_end = mr.end(); | 375 _orig_end = mr.end(); |