Commit d60331a 1 parent beed414 commit d60331a Copy full SHA for d60331a
File tree 2 files changed +2
-25
lines changed
src/hotspot/share/gc/serial
2 files changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -950,17 +950,6 @@ void SerialHeap::prepare_for_verify() {
950
950
ensure_parsability (false ); // no need to retire TLABs
951
951
}
952
952
953
- void SerialHeap::generation_iterate (GenClosure* cl,
954
- bool old_to_young) {
955
- if (old_to_young) {
956
- cl->do_generation (_old_gen);
957
- cl->do_generation (_young_gen);
958
- } else {
959
- cl->do_generation (_young_gen);
960
- cl->do_generation (_old_gen);
961
- }
962
- }
963
-
964
953
bool SerialHeap::is_maximal_no_gc () const {
965
954
// We don't expand young-gen except at a GC.
966
955
return _old_gen->is_maximal_no_gc ();
@@ -1058,18 +1047,10 @@ void SerialHeap::gc_epilogue(bool full) {
1058
1047
};
1059
1048
1060
1049
#ifndef PRODUCT
1061
- class GenGCSaveTopsBeforeGCClosure : public SerialHeap ::GenClosure {
1062
- private:
1063
- public:
1064
- void do_generation (Generation* gen) {
1065
- gen->record_spaces_top ();
1066
- }
1067
- };
1068
-
1069
1050
void SerialHeap::record_gen_tops_before_GC () {
1070
1051
if (ZapUnusedHeapArea) {
1071
- GenGCSaveTopsBeforeGCClosure blk ;
1072
- generation_iterate (&blk, false ); // not old-to-young.
1052
+ _young_gen-> record_spaces_top () ;
1053
+ _old_gen-> record_spaces_top ();
1073
1054
}
1074
1055
}
1075
1056
#endif // not PRODUCT
Original file line number Diff line number Diff line change @@ -249,10 +249,6 @@ class SerialHeap : public CollectedHeap {
249
249
virtual void do_generation (Generation* gen) = 0;
250
250
};
251
251
252
- // Apply "cl.do_generation" to all generations in the heap
253
- // If "old_to_young" determines the order.
254
- void generation_iterate (GenClosure* cl, bool old_to_young);
255
-
256
252
// Return "true" if all generations have reached the
257
253
// maximal committed limit that they can reach, without a garbage
258
254
// collection.
You can’t perform that action at this time.
1 commit comments
openjdk-notifier[bot] commentedon Feb 20, 2024
Review
Issues