--- a/hotspot/src/share/vm/memory/universe.cpp Wed Sep 11 12:03:41 2013 +0200
+++ b/hotspot/src/share/vm/memory/universe.cpp Wed Sep 11 16:25:02 2013 +0200
@@ -872,6 +872,9 @@
// Reserve the Java heap, which is now the same for all GCs.
ReservedSpace Universe::reserve_heap(size_t heap_size, size_t alignment) {
+ assert(alignment <= Arguments::conservative_max_heap_alignment(),
+ err_msg("actual alignment "SIZE_FORMAT" must be within maximum heap alignment "SIZE_FORMAT,
+ alignment, Arguments::conservative_max_heap_alignment()));
size_t total_reserved = align_size_up(heap_size, alignment);
assert(!UseCompressedOops || (total_reserved <= (OopEncodingHeapMax - os::vm_page_size())),
"heap size is too big for compressed oops");