changeset 7844:ec77d75f4a88

8068971: A heap region being cleared should not belong to the cset Reviewed-by: brutisso, tschatzl
author ehelin
date Fri, 16 Jan 2015 14:43:45 +0100
parents 19affcc65195
children 41707c753261
files src/share/vm/gc_implementation/g1/heapRegion.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/heapRegion.cpp	Fri Jan 16 10:32:40 2015 +0000
+++ b/src/share/vm/gc_implementation/g1/heapRegion.cpp	Fri Jan 16 14:43:45 2015 +0100
@@ -162,8 +162,8 @@
          "we should have already filtered out humongous regions");
   assert(_end == orig_end(),
          "we should have already filtered out humongous regions");
-
-  _in_collection_set = false;
+  assert(!_in_collection_set,
+         err_msg("Should not clear heap region %u in the collection set", hrm_index()));
 
   set_allocation_context(AllocationContext::system());
   set_young_index_in_cset(-1);