mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8072428: Enable UseLoopCounter ergonomically if on-stack-replacement is enabled
Set UseLoopCounter ergonomically if on-stack-replacement is enabled. Print warning. Reviewed-by: kvn
This commit is contained in:
parent
611e659be1
commit
acab1fddac
1 changed files with 5 additions and 0 deletions
|
@ -4514,6 +4514,11 @@ jint Arguments::apply_ergo() {
|
||||||
warning("Setting CompressedClassSpaceSize has no effect when compressed class pointers are not used");
|
warning("Setting CompressedClassSpaceSize has no effect when compressed class pointers are not used");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (UseOnStackReplacement && !UseLoopCounter) {
|
||||||
|
warning("On-stack-replacement requires loop counters; enabling loop counters");
|
||||||
|
FLAG_SET_DEFAULT(UseLoopCounter, true);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef PRODUCT
|
#ifndef PRODUCT
|
||||||
if (!LogVMOutput && FLAG_IS_DEFAULT(LogVMOutput)) {
|
if (!LogVMOutput && FLAG_IS_DEFAULT(LogVMOutput)) {
|
||||||
if (use_vm_log()) {
|
if (use_vm_log()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue