--- old/src/share/vm/memory/universe.cpp 2015-07-15 00:06:56.840868062 -0700 +++ new/src/share/vm/memory/universe.cpp 2015-07-15 00:06:56.744868059 -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();