src/hotspot/share/jvmci/jvmciCompiler.cpp
changeset 53193 184c51e48260
parent 52934 8deeb7bba516
child 53417 126c5e7b97b1
equal deleted inserted replaced
53192:0042eb88035b 53193:184c51e48260
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2019, 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.
    52   if (!UseCompiler || !EnableJVMCI || !UseJVMCICompiler || !should_perform_init()) {
    52   if (!UseCompiler || !EnableJVMCI || !UseJVMCICompiler || !should_perform_init()) {
    53     return;
    53     return;
    54   }
    54   }
    55 
    55 
    56   set_state(initialized);
    56   set_state(initialized);
    57 
       
    58   // JVMCI is considered as application code so we need to
       
    59   // stop the VM deferring compilation now.
       
    60   CompilationPolicy::completed_vm_startup();
       
    61 }
    57 }
    62 
    58 
    63 void JVMCICompiler::bootstrap(TRAPS) {
    59 void JVMCICompiler::bootstrap(TRAPS) {
    64   if (Arguments::mode() == Arguments::_int) {
    60   if (Arguments::mode() == Arguments::_int) {
    65     // Nothing to do in -Xint mode
    61     // Nothing to do in -Xint mode