Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/init.cpp @ 20360:833b0f92429a
8046598: Scalable Native memory tracking development
Summary: Enhance scalability of native memory tracking
Reviewed-by: coleenp, ctornqvi, gtriantafill
author | zgu |
---|---|
date | Wed, 27 Aug 2014 08:19:12 -0400 |
parents | 740e263c80c6 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20359:4d3a43351904 | 20360:833b0f92429a |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2014, 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. |
32 #include "runtime/handles.inline.hpp" | 32 #include "runtime/handles.inline.hpp" |
33 #include "runtime/icache.hpp" | 33 #include "runtime/icache.hpp" |
34 #include "runtime/init.hpp" | 34 #include "runtime/init.hpp" |
35 #include "runtime/safepoint.hpp" | 35 #include "runtime/safepoint.hpp" |
36 #include "runtime/sharedRuntime.hpp" | 36 #include "runtime/sharedRuntime.hpp" |
37 #include "services/memTracker.hpp" | |
37 #include "utilities/macros.hpp" | 38 #include "utilities/macros.hpp" |
39 | |
38 | 40 |
39 // Initialization done by VM thread in vm_init_globals() | 41 // Initialization done by VM thread in vm_init_globals() |
40 void check_ThreadShadow(); | 42 void check_ThreadShadow(); |
41 void eventlog_init(); | 43 void eventlog_init(); |
42 void mutex_init(); | 44 void mutex_init(); |
129 return JNI_ERR; | 131 return JNI_ERR; |
130 } | 132 } |
131 javaClasses_init(); // must happen after vtable initialization | 133 javaClasses_init(); // must happen after vtable initialization |
132 stubRoutines_init2(); // note: StubRoutines need 2-phase init | 134 stubRoutines_init2(); // note: StubRoutines need 2-phase init |
133 | 135 |
136 #if INCLUDE_NMT | |
137 // Solaris stack is walkable only after stubRoutines are set up. | |
138 // On Other platforms, the stack is always walkable. | |
139 NMT_stack_walkable = true; | |
140 #endif // INCLUDE_NMT | |
141 | |
134 // All the flags that get adjusted by VM_Version_init and os::init_2 | 142 // All the flags that get adjusted by VM_Version_init and os::init_2 |
135 // have been set so dump the flags now. | 143 // have been set so dump the flags now. |
136 if (PrintFlagsFinal) { | 144 if (PrintFlagsFinal) { |
137 CommandLineFlags::printFlags(tty, false); | 145 CommandLineFlags::printFlags(tty, false); |
138 } | 146 } |