Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/heapRegion.cpp @ 1394:1316cec51b4d
6819061: G1: eliminate serial Other times that are proportional to the collection set length
6871109: G1: remove the concept of the scan only prefix
Summary: Removed scan only regions and associated code. The young portion of the collection set is now constructed incrementally - when a young region is retired as the current allocation region it is added to the collection set.
Reviewed-by: apetrusenko, iveresov, tonyp
author | johnc |
---|---|
date | Thu, 22 Apr 2010 10:02:38 -0700 |
parents | 7666957bc44d |
children | 0ba67bb5392c fb57d4cf76c2 cc387008223e |
comparison
equal
deleted
inserted
replaced
1393:6ecb6e6de3d6 | 1394:1316cec51b4d |
---|---|
1 /* | 1 /* |
2 * Copyright 2001-2009 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 2001-2010 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
448 _claimed(InitialClaimValue), _evacuation_failed(false), | 448 _claimed(InitialClaimValue), _evacuation_failed(false), |
449 _prev_marked_bytes(0), _next_marked_bytes(0), _sort_index(-1), | 449 _prev_marked_bytes(0), _next_marked_bytes(0), _sort_index(-1), |
450 _young_type(NotYoung), _next_young_region(NULL), | 450 _young_type(NotYoung), _next_young_region(NULL), |
451 _next_dirty_cards_region(NULL), | 451 _next_dirty_cards_region(NULL), |
452 _young_index_in_cset(-1), _surv_rate_group(NULL), _age_index(-1), | 452 _young_index_in_cset(-1), _surv_rate_group(NULL), _age_index(-1), |
453 _rem_set(NULL), _zfs(NotZeroFilled) | 453 _rem_set(NULL), _zfs(NotZeroFilled), |
454 _recorded_rs_length(0), _predicted_elapsed_time_ms(0), | |
455 _predicted_bytes_to_copy(0) | |
454 { | 456 { |
455 _orig_end = mr.end(); | 457 _orig_end = mr.end(); |
456 // Note that initialize() will set the start of the unmarked area of the | 458 // Note that initialize() will set the start of the unmarked area of the |
457 // region. | 459 // region. |
458 this->initialize(mr, !is_zeroed, SpaceDecorator::Mangle); | 460 this->initialize(mr, !is_zeroed, SpaceDecorator::Mangle); |
731 else if (is_gc_alloc_region()) | 733 else if (is_gc_alloc_region()) |
732 st->print(" A "); | 734 st->print(" A "); |
733 else | 735 else |
734 st->print(" "); | 736 st->print(" "); |
735 if (is_young()) | 737 if (is_young()) |
736 st->print(is_scan_only() ? " SO" : (is_survivor() ? " SU" : " Y ")); | 738 st->print(is_survivor() ? " SU" : " Y "); |
737 else | 739 else |
738 st->print(" "); | 740 st->print(" "); |
739 if (is_empty()) | 741 if (is_empty()) |
740 st->print(" F"); | 742 st->print(" F"); |
741 else | 743 else |