--- old/src/share/vm/gc/g1/g1CollectedHeap.hpp 2015-08-11 11:49:11.552127675 -0400 +++ new/src/share/vm/gc/g1/g1CollectedHeap.hpp 2015-08-11 11:49:10.948092953 -0400 @@ -751,6 +751,12 @@ // alloc_archive_regions, and after class loading has occurred. void fill_archive_regions(MemRegion* range, size_t count); + // For each of the specified MemRegions, uncommit the containing G1 regions + // which had been allocated by alloc_archive_regions. This should be called + // rather than fill_archive_regions at JVM init time if the archive file + // mapping failed, with the same non-overlapping and sorted MemRegion array. + void dealloc_archive_regions(MemRegion* range, size_t count); + protected: // Shrink the garbage-first heap by at most the given size (in bytes!).