author | eosterlund |
Mon, 19 Mar 2018 07:38:18 +0100 | |
changeset 49455 | 848864ed9b17 |
parent 49370 | 81bc1dc36a53 |
child 49480 | d7df2dd501ce |
permissions | -rw-r--r-- |
49370
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
1 |
/* |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
2 |
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
4 |
* |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
8 |
* |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
13 |
* accompanied this code). |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
14 |
* |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
18 |
* |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
21 |
* questions. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
22 |
*/ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
23 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
24 |
// no precompiled headers |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
25 |
#include "ci/ciUtilities.hpp" |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
26 |
#include "memory/oopFactory.hpp" |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
27 |
#include "oops/objArrayOop.inline.hpp" |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
28 |
#include "jvmci/jvmciRuntime.hpp" |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
29 |
#include "jvmci/jvmciCompilerToVM.hpp" |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
30 |
#include "jvmci/vmStructs_jvmci.hpp" |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
31 |
#include "utilities/resourceHash.hpp" |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
32 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
33 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
34 |
int CompilerToVM::Data::Klass_vtable_start_offset; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
35 |
int CompilerToVM::Data::Klass_vtable_length_offset; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
36 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
37 |
int CompilerToVM::Data::Method_extra_stack_entries; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
38 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
39 |
address CompilerToVM::Data::SharedRuntime_ic_miss_stub; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
40 |
address CompilerToVM::Data::SharedRuntime_handle_wrong_method_stub; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
41 |
address CompilerToVM::Data::SharedRuntime_deopt_blob_unpack; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
42 |
address CompilerToVM::Data::SharedRuntime_deopt_blob_uncommon_trap; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
43 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
44 |
size_t CompilerToVM::Data::ThreadLocalAllocBuffer_alignment_reserve; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
45 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
46 |
CollectedHeap* CompilerToVM::Data::Universe_collectedHeap; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
47 |
int CompilerToVM::Data::Universe_base_vtable_size; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
48 |
address CompilerToVM::Data::Universe_narrow_oop_base; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
49 |
int CompilerToVM::Data::Universe_narrow_oop_shift; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
50 |
address CompilerToVM::Data::Universe_narrow_klass_base; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
51 |
int CompilerToVM::Data::Universe_narrow_klass_shift; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
52 |
void* CompilerToVM::Data::Universe_non_oop_bits; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
53 |
uintptr_t CompilerToVM::Data::Universe_verify_oop_mask; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
54 |
uintptr_t CompilerToVM::Data::Universe_verify_oop_bits; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
55 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
56 |
bool CompilerToVM::Data::_supports_inline_contig_alloc; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
57 |
HeapWord** CompilerToVM::Data::_heap_end_addr; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
58 |
HeapWord* volatile* CompilerToVM::Data::_heap_top_addr; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
59 |
int CompilerToVM::Data::_max_oop_map_stack_offset; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
60 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
61 |
jbyte* CompilerToVM::Data::cardtable_start_address; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
62 |
int CompilerToVM::Data::cardtable_shift; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
63 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
64 |
int CompilerToVM::Data::vm_page_size; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
65 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
66 |
int CompilerToVM::Data::sizeof_vtableEntry = sizeof(vtableEntry); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
67 |
int CompilerToVM::Data::sizeof_ExceptionTableElement = sizeof(ExceptionTableElement); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
68 |
int CompilerToVM::Data::sizeof_LocalVariableTableElement = sizeof(LocalVariableTableElement); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
69 |
int CompilerToVM::Data::sizeof_ConstantPool = sizeof(ConstantPool); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
70 |
int CompilerToVM::Data::sizeof_SymbolPointer = sizeof(Symbol*); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
71 |
int CompilerToVM::Data::sizeof_narrowKlass = sizeof(narrowKlass); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
72 |
int CompilerToVM::Data::sizeof_arrayOopDesc = sizeof(arrayOopDesc); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
73 |
int CompilerToVM::Data::sizeof_BasicLock = sizeof(BasicLock); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
74 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
75 |
address CompilerToVM::Data::dsin; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
76 |
address CompilerToVM::Data::dcos; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
77 |
address CompilerToVM::Data::dtan; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
78 |
address CompilerToVM::Data::dexp; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
79 |
address CompilerToVM::Data::dlog; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
80 |
address CompilerToVM::Data::dlog10; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
81 |
address CompilerToVM::Data::dpow; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
82 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
83 |
address CompilerToVM::Data::symbol_init; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
84 |
address CompilerToVM::Data::symbol_clinit; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
85 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
86 |
void CompilerToVM::Data::initialize(TRAPS) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
87 |
Klass_vtable_start_offset = in_bytes(Klass::vtable_start_offset()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
88 |
Klass_vtable_length_offset = in_bytes(Klass::vtable_length_offset()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
89 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
90 |
Method_extra_stack_entries = Method::extra_stack_entries(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
91 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
92 |
SharedRuntime_ic_miss_stub = SharedRuntime::get_ic_miss_stub(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
93 |
SharedRuntime_handle_wrong_method_stub = SharedRuntime::get_handle_wrong_method_stub(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
94 |
SharedRuntime_deopt_blob_unpack = SharedRuntime::deopt_blob()->unpack(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
95 |
SharedRuntime_deopt_blob_uncommon_trap = SharedRuntime::deopt_blob()->uncommon_trap(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
96 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
97 |
ThreadLocalAllocBuffer_alignment_reserve = ThreadLocalAllocBuffer::alignment_reserve(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
98 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
99 |
Universe_collectedHeap = Universe::heap(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
100 |
Universe_base_vtable_size = Universe::base_vtable_size(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
101 |
Universe_narrow_oop_base = Universe::narrow_oop_base(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
102 |
Universe_narrow_oop_shift = Universe::narrow_oop_shift(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
103 |
Universe_narrow_klass_base = Universe::narrow_klass_base(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
104 |
Universe_narrow_klass_shift = Universe::narrow_klass_shift(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
105 |
Universe_non_oop_bits = Universe::non_oop_word(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
106 |
Universe_verify_oop_mask = Universe::verify_oop_mask(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
107 |
Universe_verify_oop_bits = Universe::verify_oop_bits(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
108 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
109 |
_supports_inline_contig_alloc = Universe::heap()->supports_inline_contig_alloc(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
110 |
_heap_end_addr = _supports_inline_contig_alloc ? Universe::heap()->end_addr() : (HeapWord**) -1; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
111 |
_heap_top_addr = _supports_inline_contig_alloc ? Universe::heap()->top_addr() : (HeapWord* volatile*) -1; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
112 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
113 |
_max_oop_map_stack_offset = (OopMapValue::register_mask - VMRegImpl::stack2reg(0)->value()) * VMRegImpl::stack_slot_size; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
114 |
int max_oop_map_stack_index = _max_oop_map_stack_offset / VMRegImpl::stack_slot_size; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
115 |
assert(OopMapValue::legal_vm_reg_name(VMRegImpl::stack2reg(max_oop_map_stack_index)), "should be valid"); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
116 |
assert(!OopMapValue::legal_vm_reg_name(VMRegImpl::stack2reg(max_oop_map_stack_index + 1)), "should be invalid"); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
117 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
118 |
symbol_init = (address) vmSymbols::object_initializer_name(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
119 |
symbol_clinit = (address) vmSymbols::class_initializer_name(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
120 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
121 |
BarrierSet* bs = Universe::heap()->barrier_set(); |
49455
848864ed9b17
8199604: Rename CardTableModRefBS to CardTableBarrierSet
eosterlund
parents:
49370
diff
changeset
|
122 |
if (bs->is_a(BarrierSet::CardTableBarrierSet)) { |
49370
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
123 |
jbyte* base = ci_card_table_address(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
124 |
assert(base != NULL, "unexpected byte_map_base"); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
125 |
cardtable_start_address = base; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
126 |
cardtable_shift = CardTable::card_shift; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
127 |
} else { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
128 |
// No card mark barriers |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
129 |
cardtable_start_address = 0; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
130 |
cardtable_shift = 0; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
131 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
132 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
133 |
vm_page_size = os::vm_page_size(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
134 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
135 |
#define SET_TRIGFUNC(name) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
136 |
if (StubRoutines::name() != NULL) { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
137 |
name = StubRoutines::name(); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
138 |
} else { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
139 |
name = CAST_FROM_FN_PTR(address, SharedRuntime::name); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
140 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
141 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
142 |
SET_TRIGFUNC(dsin); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
143 |
SET_TRIGFUNC(dcos); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
144 |
SET_TRIGFUNC(dtan); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
145 |
SET_TRIGFUNC(dexp); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
146 |
SET_TRIGFUNC(dlog10); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
147 |
SET_TRIGFUNC(dlog); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
148 |
SET_TRIGFUNC(dpow); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
149 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
150 |
#undef SET_TRIGFUNC |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
151 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
152 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
153 |
objArrayHandle CompilerToVM::initialize_intrinsics(TRAPS) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
154 |
objArrayHandle vmIntrinsics = oopFactory::new_objArray_handle(VMIntrinsicMethod::klass(), (vmIntrinsics::ID_LIMIT - 1), CHECK_(objArrayHandle())); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
155 |
int index = 0; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
156 |
// The intrinsics for a class are usually adjacent to each other. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
157 |
// When they are, the string for the class name can be reused. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
158 |
vmSymbols::SID kls_sid = vmSymbols::NO_SID; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
159 |
Handle kls_str; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
160 |
#define VM_SYMBOL_TO_STRING(s) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
161 |
java_lang_String::create_from_symbol(vmSymbols::symbol_at(vmSymbols::VM_SYMBOL_ENUM_NAME(s)), CHECK_(objArrayHandle())) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
162 |
#define VM_INTRINSIC_INFO(id, kls, name, sig, ignore_fcode) { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
163 |
instanceHandle vmIntrinsicMethod = InstanceKlass::cast(VMIntrinsicMethod::klass())->allocate_instance_handle(CHECK_(objArrayHandle())); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
164 |
vmSymbols::SID sid = vmSymbols::VM_SYMBOL_ENUM_NAME(kls); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
165 |
if (kls_sid != sid) { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
166 |
kls_str = VM_SYMBOL_TO_STRING(kls); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
167 |
kls_sid = sid; \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
168 |
} \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
169 |
Handle name_str = VM_SYMBOL_TO_STRING(name); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
170 |
Handle sig_str = VM_SYMBOL_TO_STRING(sig); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
171 |
VMIntrinsicMethod::set_declaringClass(vmIntrinsicMethod, kls_str()); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
172 |
VMIntrinsicMethod::set_name(vmIntrinsicMethod, name_str()); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
173 |
VMIntrinsicMethod::set_descriptor(vmIntrinsicMethod, sig_str()); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
174 |
VMIntrinsicMethod::set_id(vmIntrinsicMethod, vmIntrinsics::id); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
175 |
vmIntrinsics->obj_at_put(index++, vmIntrinsicMethod()); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
176 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
177 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
178 |
VM_INTRINSICS_DO(VM_INTRINSIC_INFO, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
179 |
#undef VM_SYMBOL_TO_STRING |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
180 |
#undef VM_INTRINSIC_INFO |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
181 |
assert(index == vmIntrinsics::ID_LIMIT - 1, "must be"); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
182 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
183 |
return vmIntrinsics; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
184 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
185 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
186 |
/** |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
187 |
* The set of VM flags known to be used. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
188 |
*/ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
189 |
#define PREDEFINED_CONFIG_FLAGS(do_bool_flag, do_intx_flag, do_uintx_flag) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
190 |
do_intx_flag(AllocateInstancePrefetchLines) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
191 |
do_intx_flag(AllocatePrefetchDistance) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
192 |
do_intx_flag(AllocatePrefetchInstr) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
193 |
do_intx_flag(AllocatePrefetchLines) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
194 |
do_intx_flag(AllocatePrefetchStepSize) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
195 |
do_intx_flag(AllocatePrefetchStyle) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
196 |
do_intx_flag(BciProfileWidth) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
197 |
do_bool_flag(BootstrapJVMCI) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
198 |
do_bool_flag(CITime) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
199 |
do_bool_flag(CITimeEach) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
200 |
do_uintx_flag(CodeCacheSegmentSize) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
201 |
do_intx_flag(CodeEntryAlignment) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
202 |
do_bool_flag(CompactFields) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
203 |
NOT_PRODUCT(do_intx_flag(CompileTheWorldStartAt)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
204 |
NOT_PRODUCT(do_intx_flag(CompileTheWorldStopAt)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
205 |
do_intx_flag(ContendedPaddingWidth) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
206 |
do_bool_flag(DontCompileHugeMethods) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
207 |
do_bool_flag(EagerJVMCI) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
208 |
do_bool_flag(EnableContended) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
209 |
do_intx_flag(FieldsAllocationStyle) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
210 |
do_bool_flag(FoldStableValues) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
211 |
do_bool_flag(ForceUnreachable) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
212 |
do_intx_flag(HugeMethodLimit) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
213 |
do_bool_flag(Inline) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
214 |
do_intx_flag(JVMCICounterSize) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
215 |
do_bool_flag(JVMCIPrintProperties) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
216 |
do_bool_flag(JVMCIUseFastLocking) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
217 |
do_intx_flag(MethodProfileWidth) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
218 |
do_intx_flag(ObjectAlignmentInBytes) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
219 |
do_bool_flag(PrintInlining) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
220 |
do_bool_flag(ReduceInitialCardMarks) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
221 |
do_bool_flag(RestrictContended) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
222 |
do_intx_flag(StackReservedPages) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
223 |
do_intx_flag(StackShadowPages) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
224 |
do_bool_flag(TLABStats) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
225 |
do_uintx_flag(TLABWasteIncrement) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
226 |
do_intx_flag(TypeProfileWidth) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
227 |
do_bool_flag(UseAESIntrinsics) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
228 |
X86_ONLY(do_intx_flag(UseAVX)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
229 |
do_bool_flag(UseBiasedLocking) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
230 |
do_bool_flag(UseCRC32Intrinsics) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
231 |
do_bool_flag(UseCompressedClassPointers) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
232 |
do_bool_flag(UseCompressedOops) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
233 |
do_bool_flag(UseConcMarkSweepGC) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
234 |
X86_ONLY(do_bool_flag(UseCountLeadingZerosInstruction)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
235 |
X86_ONLY(do_bool_flag(UseCountTrailingZerosInstruction)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
236 |
do_bool_flag(UseG1GC) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
237 |
COMPILER2_PRESENT(do_bool_flag(UseMontgomeryMultiplyIntrinsic)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
238 |
COMPILER2_PRESENT(do_bool_flag(UseMontgomerySquareIntrinsic)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
239 |
COMPILER2_PRESENT(do_bool_flag(UseMulAddIntrinsic)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
240 |
COMPILER2_PRESENT(do_bool_flag(UseMultiplyToLenIntrinsic)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
241 |
do_bool_flag(UsePopCountInstruction) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
242 |
do_bool_flag(UseSHA1Intrinsics) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
243 |
do_bool_flag(UseSHA256Intrinsics) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
244 |
do_bool_flag(UseSHA512Intrinsics) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
245 |
do_intx_flag(UseSSE) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
246 |
COMPILER2_PRESENT(do_bool_flag(UseSquareToLenIntrinsic)) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
247 |
do_bool_flag(UseStackBanging) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
248 |
do_bool_flag(UseTLAB) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
249 |
do_bool_flag(VerifyOops) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
250 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
251 |
#define BOXED_BOOLEAN(name, value) oop name = ((jboolean)(value) ? boxedTrue() : boxedFalse()) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
252 |
#define BOXED_DOUBLE(name, value) oop name; do { jvalue p; p.d = (jdouble) (value); name = java_lang_boxing_object::create(T_DOUBLE, &p, CHECK_NULL);} while(0) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
253 |
#define BOXED_LONG(name, value) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
254 |
oop name; \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
255 |
do { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
256 |
jvalue p; p.j = (jlong) (value); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
257 |
Handle* e = longs.get(p.j); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
258 |
if (e == NULL) { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
259 |
oop o = java_lang_boxing_object::create(T_LONG, &p, CHECK_NULL); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
260 |
Handle h(THREAD, o); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
261 |
longs.put(p.j, h); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
262 |
name = h(); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
263 |
} else { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
264 |
name = (*e)(); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
265 |
} \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
266 |
} while (0) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
267 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
268 |
#define CSTRING_TO_JSTRING(name, value) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
269 |
Handle name; \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
270 |
do { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
271 |
if (value != NULL) { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
272 |
Handle* e = strings.get(value); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
273 |
if (e == NULL) { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
274 |
Handle h = java_lang_String::create_from_str(value, CHECK_NULL); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
275 |
strings.put(value, h); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
276 |
name = h; \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
277 |
} else { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
278 |
name = (*e); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
279 |
} \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
280 |
} \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
281 |
} while (0) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
282 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
283 |
jobjectArray readConfiguration0(JNIEnv *env, TRAPS) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
284 |
ResourceMark rm; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
285 |
HandleMark hm; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
286 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
287 |
// Used to canonicalize Long and String values. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
288 |
ResourceHashtable<jlong, Handle> longs; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
289 |
ResourceHashtable<const char*, Handle, &CompilerToVM::cstring_hash, &CompilerToVM::cstring_equals> strings; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
290 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
291 |
jvalue prim; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
292 |
prim.z = true; oop boxedTrueOop = java_lang_boxing_object::create(T_BOOLEAN, &prim, CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
293 |
Handle boxedTrue(THREAD, boxedTrueOop); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
294 |
prim.z = false; oop boxedFalseOop = java_lang_boxing_object::create(T_BOOLEAN, &prim, CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
295 |
Handle boxedFalse(THREAD, boxedFalseOop); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
296 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
297 |
CompilerToVM::Data::initialize(CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
298 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
299 |
VMField::klass()->initialize(CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
300 |
VMFlag::klass()->initialize(CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
301 |
VMIntrinsicMethod::klass()->initialize(CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
302 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
303 |
int len = JVMCIVMStructs::localHotSpotVMStructs_count(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
304 |
objArrayHandle vmFields = oopFactory::new_objArray_handle(VMField::klass(), len, CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
305 |
for (int i = 0; i < len ; i++) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
306 |
VMStructEntry vmField = JVMCIVMStructs::localHotSpotVMStructs[i]; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
307 |
instanceHandle vmFieldObj = InstanceKlass::cast(VMField::klass())->allocate_instance_handle(CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
308 |
size_t name_buf_len = strlen(vmField.typeName) + strlen(vmField.fieldName) + 2 /* "::" */; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
309 |
char* name_buf = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, name_buf_len + 1); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
310 |
sprintf(name_buf, "%s::%s", vmField.typeName, vmField.fieldName); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
311 |
CSTRING_TO_JSTRING(name, name_buf); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
312 |
CSTRING_TO_JSTRING(type, vmField.typeString); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
313 |
VMField::set_name(vmFieldObj, name()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
314 |
VMField::set_type(vmFieldObj, type()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
315 |
VMField::set_offset(vmFieldObj, vmField.offset); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
316 |
VMField::set_address(vmFieldObj, (jlong) vmField.address); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
317 |
if (vmField.isStatic && vmField.typeString != NULL) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
318 |
if (strcmp(vmField.typeString, "bool") == 0) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
319 |
BOXED_BOOLEAN(box, *(jbyte*) vmField.address); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
320 |
VMField::set_value(vmFieldObj, box); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
321 |
} else if (strcmp(vmField.typeString, "int") == 0 || |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
322 |
strcmp(vmField.typeString, "jint") == 0) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
323 |
BOXED_LONG(box, *(jint*) vmField.address); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
324 |
VMField::set_value(vmFieldObj, box); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
325 |
} else if (strcmp(vmField.typeString, "uint64_t") == 0) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
326 |
BOXED_LONG(box, *(uint64_t*) vmField.address); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
327 |
VMField::set_value(vmFieldObj, box); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
328 |
} else if (strcmp(vmField.typeString, "address") == 0 || |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
329 |
strcmp(vmField.typeString, "intptr_t") == 0 || |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
330 |
strcmp(vmField.typeString, "uintptr_t") == 0 || |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
331 |
strcmp(vmField.typeString, "OopHandle") == 0 || |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
332 |
strcmp(vmField.typeString, "size_t") == 0 || |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
333 |
// All foo* types are addresses. |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
334 |
vmField.typeString[strlen(vmField.typeString) - 1] == '*') { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
335 |
BOXED_LONG(box, *((address*) vmField.address)); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
336 |
VMField::set_value(vmFieldObj, box); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
337 |
} else { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
338 |
JVMCI_ERROR_NULL("VM field %s has unsupported type %s", name_buf, vmField.typeString); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
339 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
340 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
341 |
vmFields->obj_at_put(i, vmFieldObj()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
342 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
343 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
344 |
int ints_len = JVMCIVMStructs::localHotSpotVMIntConstants_count(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
345 |
int longs_len = JVMCIVMStructs::localHotSpotVMLongConstants_count(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
346 |
len = ints_len + longs_len; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
347 |
objArrayHandle vmConstants = oopFactory::new_objArray_handle(SystemDictionary::Object_klass(), len * 2, CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
348 |
int insert = 0; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
349 |
for (int i = 0; i < ints_len ; i++) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
350 |
VMIntConstantEntry c = JVMCIVMStructs::localHotSpotVMIntConstants[i]; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
351 |
CSTRING_TO_JSTRING(name, c.name); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
352 |
BOXED_LONG(value, c.value); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
353 |
vmConstants->obj_at_put(insert++, name()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
354 |
vmConstants->obj_at_put(insert++, value); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
355 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
356 |
for (int i = 0; i < longs_len ; i++) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
357 |
VMLongConstantEntry c = JVMCIVMStructs::localHotSpotVMLongConstants[i]; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
358 |
CSTRING_TO_JSTRING(name, c.name); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
359 |
BOXED_LONG(value, c.value); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
360 |
vmConstants->obj_at_put(insert++, name()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
361 |
vmConstants->obj_at_put(insert++, value); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
362 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
363 |
assert(insert == len * 2, "must be"); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
364 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
365 |
len = JVMCIVMStructs::localHotSpotVMAddresses_count(); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
366 |
objArrayHandle vmAddresses = oopFactory::new_objArray_handle(SystemDictionary::Object_klass(), len * 2, CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
367 |
for (int i = 0; i < len ; i++) { |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
368 |
VMAddressEntry a = JVMCIVMStructs::localHotSpotVMAddresses[i]; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
369 |
CSTRING_TO_JSTRING(name, a.name); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
370 |
BOXED_LONG(value, a.value); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
371 |
vmAddresses->obj_at_put(i * 2, name()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
372 |
vmAddresses->obj_at_put(i * 2 + 1, value); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
373 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
374 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
375 |
#define COUNT_FLAG(ignore) +1 |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
376 |
#ifdef ASSERT |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
377 |
#define CHECK_FLAG(type, name) { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
378 |
Flag* flag = Flag::find_flag(#name, strlen(#name), /*allow_locked*/ true, /* return_flag */ true); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
379 |
assert(flag != NULL, "No such flag named " #name); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
380 |
assert(flag->is_##type(), "Flag " #name " is not of type " #type); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
381 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
382 |
#else |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
383 |
#define CHECK_FLAG(type, name) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
384 |
#endif |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
385 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
386 |
#define ADD_FLAG(type, name, convert) { \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
387 |
CHECK_FLAG(type, name) \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
388 |
instanceHandle vmFlagObj = InstanceKlass::cast(VMFlag::klass())->allocate_instance_handle(CHECK_NULL); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
389 |
CSTRING_TO_JSTRING(fname, #name); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
390 |
CSTRING_TO_JSTRING(ftype, #type); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
391 |
VMFlag::set_name(vmFlagObj, fname()); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
392 |
VMFlag::set_type(vmFlagObj, ftype()); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
393 |
convert(value, name); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
394 |
VMFlag::set_value(vmFlagObj, value); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
395 |
vmFlags->obj_at_put(i++, vmFlagObj()); \ |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
396 |
} |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
397 |
#define ADD_BOOL_FLAG(name) ADD_FLAG(bool, name, BOXED_BOOLEAN) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
398 |
#define ADD_INTX_FLAG(name) ADD_FLAG(intx, name, BOXED_LONG) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
399 |
#define ADD_UINTX_FLAG(name) ADD_FLAG(uintx, name, BOXED_LONG) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
400 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
401 |
len = 0 + PREDEFINED_CONFIG_FLAGS(COUNT_FLAG, COUNT_FLAG, COUNT_FLAG); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
402 |
objArrayHandle vmFlags = oopFactory::new_objArray_handle(VMFlag::klass(), len, CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
403 |
int i = 0; |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
404 |
PREDEFINED_CONFIG_FLAGS(ADD_BOOL_FLAG, ADD_INTX_FLAG, ADD_UINTX_FLAG) |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
405 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
406 |
objArrayHandle vmIntrinsics = CompilerToVM::initialize_intrinsics(CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
407 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
408 |
objArrayOop data = oopFactory::new_objArray(SystemDictionary::Object_klass(), 5, CHECK_NULL); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
409 |
data->obj_at_put(0, vmFields()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
410 |
data->obj_at_put(1, vmConstants()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
411 |
data->obj_at_put(2, vmAddresses()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
412 |
data->obj_at_put(3, vmFlags()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
413 |
data->obj_at_put(4, vmIntrinsics()); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
414 |
|
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
415 |
return (jobjectArray) JNIHandles::make_local(THREAD, data); |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
416 |
#undef COUNT_FLAG |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
417 |
#undef ADD_FLAG |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
418 |
#undef ADD_BOOL_FLAG |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
419 |
#undef ADD_INTX_FLAG |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
420 |
#undef ADD_UINTX_FLAG |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
421 |
#undef CHECK_FLAG |
81bc1dc36a53
8197235: src/hotspot/share/jvmci/jvmciCompilerToVM.cpp takes 4 minutes to compile on windows
kvn
parents:
diff
changeset
|
422 |
} |