mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8130459: Add additional validation after heap creation
Some PLAB related flags' validation can happen after heap creation. Introduced additional stage of validation check. Reviewed-by: coleenp, dholmes, kbarrett, gziemski, ecaspole, ddmitriev
This commit is contained in:
parent
093ee9b659
commit
a13fe250b0
17 changed files with 342 additions and 244 deletions
|
@ -56,6 +56,7 @@
|
|||
#include "prims/jvmtiRedefineClassesTrace.hpp"
|
||||
#include "runtime/arguments.hpp"
|
||||
#include "runtime/atomic.inline.hpp"
|
||||
#include "runtime/commandLineFlagConstraintList.hpp"
|
||||
#include "runtime/deoptimization.hpp"
|
||||
#include "runtime/fprofiler.hpp"
|
||||
#include "runtime/handles.inline.hpp"
|
||||
|
@ -656,6 +657,11 @@ jint universe_init() {
|
|||
|
||||
Metaspace::global_initialize();
|
||||
|
||||
// Checks 'AfterMemoryInit' constraints.
|
||||
if (!CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::AfterMemoryInit)) {
|
||||
return JNI_EINVAL;
|
||||
}
|
||||
|
||||
// Create memory for metadata. Must be after initializing heap for
|
||||
// DumpSharedSpaces.
|
||||
ClassLoaderData::init_null_class_loader_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue