8204966: [TESTBUG] hotspot/test/compiler/whitebox/IsMethodCompilableTest.java test fails with -XX:CompileThreshold=1

Tue, 07 Aug 2018 11:55:44 -0400

author
dbuck
date
Tue, 07 Aug 2018 11:55:44 -0400
changeset 9479
b4ee249eb1c4
parent 9478
f3108e56b502
child 9480
a57483d08d95

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 file | annotate | diff | comparison | revisions
     1.1 --- a/test/compiler/whitebox/CompilerWhiteBoxTest.java	Thu Aug 02 03:54:51 2018 -0700
     1.2 +++ b/test/compiler/whitebox/CompilerWhiteBoxTest.java	Tue Aug 07 11:55:44 2018 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -84,8 +84,8 @@
    1.11              BACKEDGE_THRESHOLD = THRESHOLD = 150000;
    1.12          } else {
    1.13              THRESHOLD = COMPILE_THRESHOLD;
    1.14 -            BACKEDGE_THRESHOLD = COMPILE_THRESHOLD * Long.parseLong(getVMOption(
    1.15 -                    "OnStackReplacePercentage"));
    1.16 +            BACKEDGE_THRESHOLD = Math.max(10000, COMPILE_THRESHOLD *
    1.17 +                    Long.parseLong(getVMOption("OnStackReplacePercentage")));
    1.18          }
    1.19      }
    1.20  

mercurial