--- old/test/lib/sun/hotspot/code/Compiler.java 2020-01-07 11:38:59.871059232 +0100 +++ new/test/lib/sun/hotspot/code/Compiler.java 2020-01-07 11:38:59.484046997 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020, 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 @@ -35,6 +35,15 @@ private static final WhiteBox WB = WhiteBox.getWhiteBox(); /** + * Check if C2 or JVMCI were included in the VM build + * + * @return true if either C2 or JVMCI were included in the VM build. + */ + public static boolean isC2OrJVMCIIncludedInVmBuild() { + return WB.isC2OrJVMCIIncludedInVmBuild(); + } + + /** * Check if Graal is used as JIT compiler. * * Graal is enabled if following conditions are true: