mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8073500: Prevent certain commercial flags from being changed at runtime
Implement new writeable mechanism for flag control Reviewed-by: coleenp, iklam
This commit is contained in:
parent
9127a0961b
commit
a991801b42
29 changed files with 699 additions and 140 deletions
|
@ -60,6 +60,7 @@
|
|||
#include "runtime/atomic.inline.hpp"
|
||||
#include "runtime/biasedLocking.hpp"
|
||||
#include "runtime/commandLineFlagConstraintList.hpp"
|
||||
#include "runtime/commandLineFlagWriteableList.hpp"
|
||||
#include "runtime/commandLineFlagRangeList.hpp"
|
||||
#include "runtime/deoptimization.hpp"
|
||||
#include "runtime/fprofiler.hpp"
|
||||
|
@ -3544,6 +3545,8 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
return JNI_EINVAL;
|
||||
}
|
||||
|
||||
CommandLineFlagWriteableList::mark_startup();
|
||||
|
||||
if (PauseAtStartup) {
|
||||
os::pause();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue