--- old/src/share/vm/memory/universe.cpp 2015-07-20 12:40:12.063901381 -0700 +++ new/src/share/vm/memory/universe.cpp 2015-07-20 12:40:11.867901375 -0700 @@ -656,6 +656,11 @@ Metaspace::global_initialize(); + // Checks 'AfterMemoryInit' constraints. + if (!CommandLineFlags::check_constraints_of_after_memory_init()) { + return JNI_EINVAL; + } + // Create memory for metadata. Must be after initializing heap for // DumpSharedSpaces. ClassLoaderData::init_null_class_loader_data();