equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, 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. |
56 void codeCache_init(); |
56 void codeCache_init(); |
57 void VM_Version_init(); |
57 void VM_Version_init(); |
58 void os_init_globals(); // depends on VM_Version_init, before universe_init |
58 void os_init_globals(); // depends on VM_Version_init, before universe_init |
59 void stubRoutines_init1(); |
59 void stubRoutines_init1(); |
60 jint universe_init(); // depends on codeCache_init and stubRoutines_init |
60 jint universe_init(); // depends on codeCache_init and stubRoutines_init |
|
61 #if INCLUDE_ALL_GCS |
|
62 // depends on universe_init, must be before interpreter_init (currently only on SPARC) |
|
63 void g1_barrier_stubs_init() NOT_SPARC({}); |
|
64 #endif |
61 void interpreter_init(); // before any methods loaded |
65 void interpreter_init(); // before any methods loaded |
62 void invocationCounter_init(); // before any methods loaded |
66 void invocationCounter_init(); // before any methods loaded |
63 void marksweep_init(); |
67 void marksweep_init(); |
64 void accessFlags_init(); |
68 void accessFlags_init(); |
65 void templateTable_init(); |
69 void templateTable_init(); |
110 jint status = universe_init(); // dependent on codeCache_init and |
114 jint status = universe_init(); // dependent on codeCache_init and |
111 // stubRoutines_init1 and metaspace_init. |
115 // stubRoutines_init1 and metaspace_init. |
112 if (status != JNI_OK) |
116 if (status != JNI_OK) |
113 return status; |
117 return status; |
114 |
118 |
115 interpreter_init(); // before any methods loaded |
119 #if INCLUDE_ALL_GCS |
|
120 g1_barrier_stubs_init(); // depends on universe_init, must be before interpreter_init |
|
121 #endif |
|
122 interpreter_init(); // before any methods loaded |
116 invocationCounter_init(); // before any methods loaded |
123 invocationCounter_init(); // before any methods loaded |
117 marksweep_init(); |
124 marksweep_init(); |
118 accessFlags_init(); |
125 accessFlags_init(); |
119 templateTable_init(); |
126 templateTable_init(); |
120 InterfaceSupport_init(); |
127 InterfaceSupport_init(); |