1 /* 2 * Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved. 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 */ 24 # include "incls/_precompiled.incl" 25 # include "incls/_jvmtiEnvBase.cpp.incl" 26 27 28 /////////////////////////////////////////////////////////////// 29 // 30 // JvmtiEnvBase 31 // 32 33 JvmtiEnvBase* JvmtiEnvBase::_head_environment = NULL; 34 35 bool JvmtiEnvBase::_globally_initialized = false; 36 volatile bool JvmtiEnvBase::_needs_clean_up = false; 37 38 jvmtiPhase JvmtiEnvBase::_phase = JVMTI_PHASE_PRIMORDIAL; 39 40 volatile int JvmtiEnvBase::_dying_thread_env_iteration_count = 0; 41 42 extern jvmtiInterface_1_ jvmti_Interface; 43 extern jvmtiInterface_1_ jvmtiTrace_Interface; 44 45 46 // perform initializations that must occur before any JVMTI environments | 1 /* 2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 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 */ 24 25 #include "precompiled.hpp" 26 #include "classfile/systemDictionary.hpp" 27 #include "jvmtifiles/jvmtiEnv.hpp" 28 #include "oops/objArrayKlass.hpp" 29 #include "oops/objArrayOop.hpp" 30 #include "prims/jvmtiEnvBase.hpp" 31 #include "prims/jvmtiEventController.inline.hpp" 32 #include "prims/jvmtiExtensions.hpp" 33 #include "prims/jvmtiImpl.hpp" 34 #include "prims/jvmtiManageCapabilities.hpp" 35 #include "prims/jvmtiTagMap.hpp" 36 #include "prims/jvmtiThreadState.inline.hpp" 37 #include "runtime/biasedLocking.hpp" 38 #include "runtime/interfaceSupport.hpp" 39 #include "runtime/jfieldIDWorkaround.hpp" 40 #include "runtime/objectMonitor.hpp" 41 #include "runtime/objectMonitor.inline.hpp" 42 #include "runtime/signature.hpp" 43 #include "runtime/vframe.hpp" 44 #include "runtime/vframe_hp.hpp" 45 #include "runtime/vmThread.hpp" 46 #include "runtime/vm_operations.hpp" 47 48 /////////////////////////////////////////////////////////////// 49 // 50 // JvmtiEnvBase 51 // 52 53 JvmtiEnvBase* JvmtiEnvBase::_head_environment = NULL; 54 55 bool JvmtiEnvBase::_globally_initialized = false; 56 volatile bool JvmtiEnvBase::_needs_clean_up = false; 57 58 jvmtiPhase JvmtiEnvBase::_phase = JVMTI_PHASE_PRIMORDIAL; 59 60 volatile int JvmtiEnvBase::_dying_thread_env_iteration_count = 0; 61 62 extern jvmtiInterface_1_ jvmti_Interface; 63 extern jvmtiInterface_1_ jvmtiTrace_Interface; 64 65 66 // perform initializations that must occur before any JVMTI environments |