aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/gc_implementation/g1/g1RemSet.cpp
diff options
context:
space:
mode:
authorapetrusenko <none@none>2009-02-06 01:38:50 +0300
committerapetrusenko <none@none>2009-02-06 01:38:50 +0300
commitfb0380030e41433ce11ffa2ebd470a474c83637e (patch)
treefe6158781d7acabdd88f42febbb6fb663717581a /src/share/vm/gc_implementation/g1/g1RemSet.cpp
parent1f5195317f59d15feb9c8b3436c8c125bda3296f (diff)
downloadjdk8u_hotspot-fb0380030e41433ce11ffa2ebd470a474c83637e.tar.gz
6484959: G1: introduce survivor spaces
6797754: G1: combined bugfix Summary: Implemented a policy to control G1 survivor space parameters. Reviewed-by: tonyp, iveresov
Diffstat (limited to 'src/share/vm/gc_implementation/g1/g1RemSet.cpp')
-rw-r--r--src/share/vm/gc_implementation/g1/g1RemSet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/share/vm/gc_implementation/g1/g1RemSet.cpp b/src/share/vm/gc_implementation/g1/g1RemSet.cpp
index 462be9a68..7946c41ff 100644
--- a/src/share/vm/gc_implementation/g1/g1RemSet.cpp
+++ b/src/share/vm/gc_implementation/g1/g1RemSet.cpp
@@ -572,6 +572,9 @@ prepare_for_oops_into_collection_set_do() {
}
guarantee( _cards_scanned == NULL, "invariant" );
_cards_scanned = NEW_C_HEAP_ARRAY(size_t, n_workers());
+ for (uint i = 0; i < n_workers(); ++i) {
+ _cards_scanned[i] = 0;
+ }
_total_cards_scanned = 0;
}