--- a/hotspot/src/share/vm/gc_interface/collectedHeap.cpp Fri Sep 19 09:23:55 2014 +0200
+++ b/hotspot/src/share/vm/gc_interface/collectedHeap.cpp Thu Sep 18 12:45:45 2014 +0200
@@ -582,6 +582,14 @@
}
}
+void CollectedHeap::initialize_reserved_region(HeapWord *start, HeapWord *end) {
+ // It is important to do this in a way such that concurrent readers can't
+ // temporarily think something is in the heap. (Seen this happen in asserts.)
+ _reserved.set_word_size(0);
+ _reserved.set_start(start);
+ _reserved.set_end(end);
+}
+
/////////////// Unit tests ///////////////
#ifndef PRODUCT