hotspot/test/compiler/arguments/CheckCompileThresholdScaling.java
changeset 37297 d65d53a0ecc7
parent 36851 03e2f4d0a421
parent 37253 45e69c7b0bac
child 40059 c2304140ed64
child 39960 ec06b2cf8575
equal deleted inserted replaced
37011:c84d0cce090e 37297:d65d53a0ecc7
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   342             }
   342             }
   343             out.shouldHaveExitValue(0);
   343             out.shouldHaveExitValue(0);
   344         } catch (RuntimeException e) {
   344         } catch (RuntimeException e) {
   345             // Check if tiered compilation is available in this JVM
   345             // Check if tiered compilation is available in this JVM
   346             // Version. Throw exception only if it is available.
   346             // Version. Throw exception only if it is available.
   347             if (!(tiered && out.getOutput().contains("TieredCompilation is disabled in this release."))) {
   347             if (!(tiered && out.getOutput().contains("-XX:+TieredCompilation not supported in this VM"))) {
   348                 throw new RuntimeException(e);
   348                 throw new RuntimeException(e);
   349             }
   349             }
   350         }
   350         }
   351     }
   351     }
   352 
   352