From 3e5b4adf79cb22c3a244361d01ae050c574e7dea Mon Sep 17 00:00:00 2001 From: dbuck Date: Tue, 7 Aug 2018 11:55:44 -0400 Subject: [PATCH] 8204966: [TESTBUG] hotspot/test/compiler/whitebox/IsMethodCompilableTest.java test fails with -XX:CompileThreshold=1 Summary: enforce lower bound on number of loop iterations used to trigger OSR Reviewed-by: kvn, iignatyev --- test/compiler/whitebox/CompilerWhiteBoxTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/compiler/whitebox/CompilerWhiteBoxTest.java b/test/compiler/whitebox/CompilerWhiteBoxTest.java index 5ca2bb5c0..a391ba20e 100644 --- a/test/compiler/whitebox/CompilerWhiteBoxTest.java +++ b/test/compiler/whitebox/CompilerWhiteBoxTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -84,8 +84,8 @@ public abstract class CompilerWhiteBoxTest { BACKEDGE_THRESHOLD = THRESHOLD = 150000; } else { THRESHOLD = COMPILE_THRESHOLD; - BACKEDGE_THRESHOLD = COMPILE_THRESHOLD * Long.parseLong(getVMOption( - "OnStackReplacePercentage")); + BACKEDGE_THRESHOLD = Math.max(10000, COMPILE_THRESHOLD * + Long.parseLong(getVMOption("OnStackReplacePercentage"))); } } -- GitLab