equal
deleted
inserted
replaced
54 #include "oops/oop.inline.hpp" |
54 #include "oops/oop.inline.hpp" |
55 #include "oops/typeArrayKlass.hpp" |
55 #include "oops/typeArrayKlass.hpp" |
56 #include "prims/jvmtiRedefineClassesTrace.hpp" |
56 #include "prims/jvmtiRedefineClassesTrace.hpp" |
57 #include "runtime/arguments.hpp" |
57 #include "runtime/arguments.hpp" |
58 #include "runtime/atomic.inline.hpp" |
58 #include "runtime/atomic.inline.hpp" |
|
59 #include "runtime/commandLineFlagConstraintList.hpp" |
59 #include "runtime/deoptimization.hpp" |
60 #include "runtime/deoptimization.hpp" |
60 #include "runtime/fprofiler.hpp" |
61 #include "runtime/fprofiler.hpp" |
61 #include "runtime/handles.inline.hpp" |
62 #include "runtime/handles.inline.hpp" |
62 #include "runtime/init.hpp" |
63 #include "runtime/init.hpp" |
63 #include "runtime/java.hpp" |
64 #include "runtime/java.hpp" |
654 return status; |
655 return status; |
655 } |
656 } |
656 |
657 |
657 Metaspace::global_initialize(); |
658 Metaspace::global_initialize(); |
658 |
659 |
|
660 // Checks 'AfterMemoryInit' constraints. |
|
661 if (!CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::AfterMemoryInit)) { |
|
662 return JNI_EINVAL; |
|
663 } |
|
664 |
659 // Create memory for metadata. Must be after initializing heap for |
665 // Create memory for metadata. Must be after initializing heap for |
660 // DumpSharedSpaces. |
666 // DumpSharedSpaces. |
661 ClassLoaderData::init_null_class_loader_data(); |
667 ClassLoaderData::init_null_class_loader_data(); |
662 |
668 |
663 // We have a heap so create the Method* caches before |
669 // We have a heap so create the Method* caches before |