equal
deleted
inserted
replaced
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 |