author | coleenp |
Wed, 13 Nov 2019 08:23:23 -0500 | |
changeset 59056 | 15936b142f86 |
parent 55159 | a38132298eda |
permissions | -rw-r--r-- |
42650 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
51770
diff
changeset
|
2 |
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
42650 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
*/ |
|
23 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
51770
diff
changeset
|
24 |
#ifndef SHARE_AOT_AOTLOADER_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
51770
diff
changeset
|
25 |
#define SHARE_AOT_AOTLOADER_HPP |
42650 | 26 |
|
27 |
#include "runtime/globals_extension.hpp" |
|
28 |
#include "runtime/handles.hpp" |
|
29 |
||
30 |
class AOTCodeHeap; |
|
47668 | 31 |
class AOTCompiledMethod; |
42650 | 32 |
class AOTLib; |
33 |
class CodeBlob; |
|
34 |
template <class T> class GrowableArray; |
|
35 |
class InstanceKlass; |
|
36 |
class JavaThread; |
|
37 |
class Metadata; |
|
38 |
class OopClosure; |
|
39 |
||
40 |
class AOTLoader { |
|
41 |
private: |
|
42 |
#if INCLUDE_AOT |
|
43 |
static GrowableArray<AOTCodeHeap*>* _heaps; |
|
44 |
static GrowableArray<AOTLib*>* _libraries; |
|
45 |
#endif |
|
46 |
static void load_library(const char* name, bool exit_on_error); |
|
47 |
||
48 |
public: |
|
49 |
#if INCLUDE_AOT |
|
50 |
static GrowableArray<AOTCodeHeap*>* heaps(); |
|
51 |
static GrowableArray<AOTLib*>* libraries(); |
|
52 |
static int heaps_count(); |
|
53 |
static int libraries_count(); |
|
54 |
static void add_heap(AOTCodeHeap *heap); |
|
55 |
static void add_library(AOTLib *lib); |
|
56 |
#endif |
|
54983
81becad91321
8224203: Remove need to specify type when using FLAG_SET macros
stefank
parents:
54150
diff
changeset
|
57 |
static void initialize() NOT_AOT({ FLAG_SET_ERGO(UseAOT, false); }); |
42650 | 58 |
|
59 |
static void universe_init() NOT_AOT_RETURN; |
|
49847
f22c0b4caad7
8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents:
47668
diff
changeset
|
60 |
static void set_narrow_oop_shift() NOT_AOT_RETURN; |
42650 | 61 |
static void set_narrow_klass_shift() NOT_AOT_RETURN; |
46329
53ccc37bda19
8155672: Remove instanceKlassHandles and KlassHandles
coleenp
parents:
42650
diff
changeset
|
62 |
static void load_for_klass(InstanceKlass* ik, Thread* thread) NOT_AOT_RETURN; |
42650 | 63 |
static uint64_t get_saved_fingerprint(InstanceKlass* ik) NOT_AOT({ return 0; }); |
64 |
static void oops_do(OopClosure* f) NOT_AOT_RETURN; |
|
54150
5529640c5f67
8220512: Deoptimize redefinition functions that have dirty ICs
coleenp
parents:
53641
diff
changeset
|
65 |
static void metadata_do(MetadataClosure* f) NOT_AOT_RETURN; |
53641
c572eb605087
8139551: Scalability problem with redefinition - multiple code cache walks
coleenp
parents:
53244
diff
changeset
|
66 |
static void mark_evol_dependent_methods(InstanceKlass* dependee) NOT_AOT_RETURN; |
55159
a38132298eda
8223320: [AOT] jck test api/javax_script/ScriptEngine/PutGet.html fails when test classes are AOTed
iveresov
parents:
54983
diff
changeset
|
67 |
static void initialize_box_caches(TRAPS) NOT_AOT_RETURN; |
42650 | 68 |
|
69 |
NOT_PRODUCT( static void print_statistics() NOT_AOT_RETURN; ) |
|
70 |
||
47668 | 71 |
static bool reconcile_dynamic_invoke(InstanceKlass* holder, int index, Method* adapter_method, Klass *appendix_klass) NOT_AOT({ return true; }); |
42650 | 72 |
}; |
73 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
51770
diff
changeset
|
74 |
#endif // SHARE_AOT_AOTLOADER_HPP |