Mercurial > hg > graal-jvmci-8
changeset 22658:61bb5fa12458
Remove StartupEventListener interface.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 06 Oct 2015 16:31:24 +0200 |
parents | 9203f93ffeb0 |
children | 39f1499686ea |
files | jvmci/jdk.internal.jvmci.compiler/src/jdk/internal/jvmci/compiler/StartupEventListener.java jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotJVMCIRuntime.java |
diffstat | 2 files changed, 2 insertions(+), 42 deletions(-) [+] |
line wrap: on
line diff
--- a/jvmci/jdk.internal.jvmci.compiler/src/jdk/internal/jvmci/compiler/StartupEventListener.java Mon Oct 05 13:13:21 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2015, 2015, 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. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ -package jdk.internal.jvmci.compiler; - -public interface StartupEventListener { - - /** - * This method is called before any of the {@link CompilerFactory} methods. - */ - void beforeJVMCIStartup(); -}
--- a/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotJVMCIRuntime.java Mon Oct 05 13:13:21 2015 +0200 +++ b/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotJVMCIRuntime.java Tue Oct 06 16:31:24 2015 +0200 @@ -41,7 +41,6 @@ import jdk.internal.jvmci.code.InstalledCode; import jdk.internal.jvmci.common.JVMCIError; import jdk.internal.jvmci.compiler.Compiler; -import jdk.internal.jvmci.compiler.StartupEventListener; import jdk.internal.jvmci.inittimer.InitTimer; import jdk.internal.jvmci.meta.JVMCIMetaAccessContext; import jdk.internal.jvmci.meta.JavaKind; @@ -80,16 +79,8 @@ private static final HotSpotJVMCIRuntime instance; static { - try (InitTimer t0 = timer("HotSpotJVMCIRuntime.<clinit>")) { - try (InitTimer t = timer("StartupEventListener.beforeJVMCIStartup")) { - for (StartupEventListener l : Services.load(StartupEventListener.class)) { - l.beforeJVMCIStartup(); - } - } - - try (InitTimer t = timer("HotSpotJVMCIRuntime.<init>")) { - instance = new HotSpotJVMCIRuntime(); - } + try (InitTimer t = timer("HotSpotJVMCIRuntime.<init>")) { + instance = new HotSpotJVMCIRuntime(); } } }