mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8036956: remove EnableInvokeDynamic flag
The EnableInvokeDynamic flag and all support code is removed because it is not longer used in JDK 9. Reviewed-by: kvn, twisti
This commit is contained in:
parent
3fddcd2712
commit
06c26b6f97
35 changed files with 51 additions and 235 deletions
|
@ -3638,19 +3638,9 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
}
|
||||
#endif // PRODUCT
|
||||
|
||||
// JSR 292 is not supported before 1.7
|
||||
if (!JDK_Version::is_gte_jdk17x_version()) {
|
||||
if (EnableInvokeDynamic) {
|
||||
if (!FLAG_IS_DEFAULT(EnableInvokeDynamic)) {
|
||||
warning("JSR 292 is not supported before 1.7. Disabling support.");
|
||||
}
|
||||
EnableInvokeDynamic = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (EnableInvokeDynamic && ScavengeRootsInCode == 0) {
|
||||
if (ScavengeRootsInCode == 0) {
|
||||
if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
|
||||
warning("forcing ScavengeRootsInCode non-zero because EnableInvokeDynamic is true");
|
||||
warning("forcing ScavengeRootsInCode non-zero");
|
||||
}
|
||||
ScavengeRootsInCode = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue