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 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/systemDictionary.hpp"
29 #include "classfile/vmSymbols.hpp"
30 #include "code/codeCache.hpp"
31 #include "code/codeCacheExtensions.hpp"
32 #include "code/scopeDesc.hpp"
33 #include "compiler/compileBroker.hpp"
34 #include "gc/shared/gcLocker.inline.hpp"
35 #include "gc/shared/workgroup.hpp"
36 #include "interpreter/interpreter.hpp"
37 #include "interpreter/linkResolver.hpp"
38 #include "interpreter/oopMapCache.hpp"
39 #include "jvmtifiles/jvmtiEnv.hpp"
40 #include "logging/logConfiguration.hpp"
41 #include "memory/metaspaceShared.hpp"
42 #include "memory/oopFactory.hpp"
43 #include "memory/universe.inline.hpp"
44 #include "oops/instanceKlass.hpp"
45 #include "oops/objArrayOop.hpp"
46 #include "oops/oop.inline.hpp"
47 #include "oops/symbol.hpp"
48 #include "oops/verifyOopClosure.hpp"
49 #include "prims/jvm_misc.hpp"
50 #include "prims/jvmtiExport.hpp"
51 #include "prims/jvmtiThreadState.hpp"
52 #include "prims/privilegedStack.hpp"
53 #include "runtime/arguments.hpp"
203 DEBUG_ONLY(_current_resource_mark = NULL;)
204 set_handle_area(new (mtThread) HandleArea(NULL));
205 set_metadata_handles(new (ResourceObj::C_HEAP, mtClass) GrowableArray<Metadata*>(30, true));
206 set_active_handles(NULL);
207 set_free_handle_block(NULL);
208 set_last_handle_mark(NULL);
209
210 // This initial value ==> never claimed.
211 _oops_do_parity = 0;
212
213 // the handle mark links itself to last_handle_mark
214 new HandleMark(this);
215
216 // plain initialization
217 debug_only(_owned_locks = NULL;)
218 debug_only(_allow_allocation_count = 0;)
219 NOT_PRODUCT(_allow_safepoint_count = 0;)
220 NOT_PRODUCT(_skip_gcalot = false;)
221 _jvmti_env_iteration_count = 0;
222 set_allocated_bytes(0);
223 _vm_operation_started_count = 0;
224 _vm_operation_completed_count = 0;
225 _current_pending_monitor = NULL;
226 _current_pending_monitor_is_from_java = true;
227 _current_waiting_monitor = NULL;
228 _num_nested_signal = 0;
229 omFreeList = NULL;
230 omFreeCount = 0;
231 omFreeProvision = 32;
232 omInUseList = NULL;
233 omInUseCount = 0;
234
235 #ifdef ASSERT
236 _visited_for_critical_count = false;
237 #endif
238
239 _SR_lock = new Monitor(Mutex::suspend_resume, "SR_lock", true,
240 Monitor::_safepoint_check_sometimes);
241 _suspend_flags = 0;
242
|
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 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/systemDictionary.hpp"
29 #include "classfile/vmSymbols.hpp"
30 #include "code/codeCache.hpp"
31 #include "code/codeCacheExtensions.hpp"
32 #include "code/scopeDesc.hpp"
33 #include "compiler/compileBroker.hpp"
34 #include "gc/shared/gcId.hpp"
35 #include "gc/shared/gcLocker.inline.hpp"
36 #include "gc/shared/workgroup.hpp"
37 #include "interpreter/interpreter.hpp"
38 #include "interpreter/linkResolver.hpp"
39 #include "interpreter/oopMapCache.hpp"
40 #include "jvmtifiles/jvmtiEnv.hpp"
41 #include "logging/logConfiguration.hpp"
42 #include "memory/metaspaceShared.hpp"
43 #include "memory/oopFactory.hpp"
44 #include "memory/universe.inline.hpp"
45 #include "oops/instanceKlass.hpp"
46 #include "oops/objArrayOop.hpp"
47 #include "oops/oop.inline.hpp"
48 #include "oops/symbol.hpp"
49 #include "oops/verifyOopClosure.hpp"
50 #include "prims/jvm_misc.hpp"
51 #include "prims/jvmtiExport.hpp"
52 #include "prims/jvmtiThreadState.hpp"
53 #include "prims/privilegedStack.hpp"
54 #include "runtime/arguments.hpp"
204 DEBUG_ONLY(_current_resource_mark = NULL;)
205 set_handle_area(new (mtThread) HandleArea(NULL));
206 set_metadata_handles(new (ResourceObj::C_HEAP, mtClass) GrowableArray<Metadata*>(30, true));
207 set_active_handles(NULL);
208 set_free_handle_block(NULL);
209 set_last_handle_mark(NULL);
210
211 // This initial value ==> never claimed.
212 _oops_do_parity = 0;
213
214 // the handle mark links itself to last_handle_mark
215 new HandleMark(this);
216
217 // plain initialization
218 debug_only(_owned_locks = NULL;)
219 debug_only(_allow_allocation_count = 0;)
220 NOT_PRODUCT(_allow_safepoint_count = 0;)
221 NOT_PRODUCT(_skip_gcalot = false;)
222 _jvmti_env_iteration_count = 0;
223 set_allocated_bytes(0);
224 _gc_id = GCId::undefined();
225 _vm_operation_started_count = 0;
226 _vm_operation_completed_count = 0;
227 _current_pending_monitor = NULL;
228 _current_pending_monitor_is_from_java = true;
229 _current_waiting_monitor = NULL;
230 _num_nested_signal = 0;
231 omFreeList = NULL;
232 omFreeCount = 0;
233 omFreeProvision = 32;
234 omInUseList = NULL;
235 omInUseCount = 0;
236
237 #ifdef ASSERT
238 _visited_for_critical_count = false;
239 #endif
240
241 _SR_lock = new Monitor(Mutex::suspend_resume, "SR_lock", true,
242 Monitor::_safepoint_check_sometimes);
243 _suspend_flags = 0;
244
|