src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File
*** old/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java	Thu Mar 28 11:23:32 2019
--- new/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java	Thu Mar 28 11:23:32 2019

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2009, 2019, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 42,51 **** --- 42,53 ---- * @param installedCode a predefined {@link InstalledCode} object to use as a reference to the * installed code. If {@code null}, a new {@link InstalledCode} object will be * created. * @return a reference to the ready-to-run code * @throws BailoutException if the code installation failed + * @throws IllegalArgumentException if {@code installedCode != null} and this object does not + * support a predefined {@link InstalledCode} object */ default InstalledCode addCode(ResolvedJavaMethod method, CompiledCode compiledCode, SpeculationLog log, InstalledCode installedCode) { return installCode(method, compiledCode, installedCode, log, false); }
*** 56,65 **** --- 58,69 ---- * @param method a method implemented by the installed code and for which the installed code * becomes the default implementation * @param compiledCode the compiled code to be added * @return a reference to the ready-to-run code * @throws BailoutException if the code installation failed + * @throws IllegalArgumentException if {@code installedCode != null} and this object does not + * support a predefined {@link InstalledCode} object */ default InstalledCode setDefaultCode(ResolvedJavaMethod method, CompiledCode compiledCode) { return installCode(method, compiledCode, null, null, true); }

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File