--- old/src/share/vm/memory/universe.cpp 2015-07-15 18:35:22.992865888 -0700 +++ new/src/share/vm/memory/universe.cpp 2015-07-15 18:35:22.884865884 -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();