comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMEventListener.java @ 22773:9273bb6ba33e

Simplify code installation interface: Use CompiledCode class instead of CompilationResult and DataSection.
author Roland Schatz <roland.schatz@oracle.com>
date Fri, 15 Jan 2016 16:50:19 +0100
parents 1bbd4a7c274b
children
comparison
equal deleted inserted replaced
22772:f16c1266b0de 22773:9273bb6ba33e
1 /* 1 /*
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2015, 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.
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package jdk.vm.ci.hotspot; 23 package jdk.vm.ci.hotspot;
24 24
25 import jdk.vm.ci.code.CompilationResult; 25 import jdk.vm.ci.code.CompiledCode;
26 import jdk.vm.ci.code.InstalledCode; 26 import jdk.vm.ci.code.InstalledCode;
27 import jdk.vm.ci.meta.JVMCIMetaAccessContext; 27 import jdk.vm.ci.meta.JVMCIMetaAccessContext;
28 import jdk.vm.ci.meta.ResolvedJavaType; 28 import jdk.vm.ci.meta.ResolvedJavaType;
29 29
30 public interface HotSpotVMEventListener { 30 public interface HotSpotVMEventListener {
38 /** 38 /**
39 * Notify on successful install into the code cache. 39 * Notify on successful install into the code cache.
40 * 40 *
41 * @param hotSpotCodeCacheProvider 41 * @param hotSpotCodeCacheProvider
42 * @param installedCode 42 * @param installedCode
43 * @param compResult 43 * @param compiledCode
44 */ 44 */
45 default void notifyInstall(HotSpotCodeCacheProvider hotSpotCodeCacheProvider, InstalledCode installedCode, CompilationResult compResult) { 45 default void notifyInstall(HotSpotCodeCacheProvider hotSpotCodeCacheProvider, InstalledCode installedCode, CompiledCode compiledCode) {
46 } 46 }
47 47
48 /** 48 /**
49 * Create a custom {@link JVMCIMetaAccessContext} to be used for managing the lifetime of loaded 49 * Create a custom {@link JVMCIMetaAccessContext} to be used for managing the lifetime of loaded
50 * metadata. It a custom one isn't created then the default implementation will be a single 50 * metadata. It a custom one isn't created then the default implementation will be a single