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 "runtime/interfaceSupport.hpp"
27 #include "runtime/javaCalls.hpp"
28 #include "runtime/serviceThread.hpp"
29 #include "runtime/mutexLocker.hpp"
30 #include "runtime/os.hpp"
31 #include "prims/jvmtiImpl.hpp"
32 #include "services/gcNotifier.hpp"
33 #include "services/diagnosticArgument.hpp"
34 #include "services/diagnosticFramework.hpp"
35
36 ServiceThread* ServiceThread::_instance = NULL;
37
38 void ServiceThread::initialize() {
39 EXCEPTION_MARK;
40
41 instanceKlassHandle klass (THREAD, SystemDictionary::Thread_klass());
42 instanceHandle thread_oop = klass->allocate_instance_handle(CHECK);
43
44 const char* name = "Service Thread";
45
46 Handle string = java_lang_String::create_from_str(name, CHECK);
47
48 // Initialize thread_oop to put it into the system threadGroup
49 Handle thread_group (THREAD, Universe::system_thread_group());
50 JavaValue result(T_VOID);
51 JavaCalls::call_special(&result, thread_oop,
52 klass,
53 vmSymbols::object_initializer_name(),
54 vmSymbols::threadgroup_string_void_signature(),
|
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 "runtime/interfaceSupport.hpp"
27 #include "runtime/javaCalls.hpp"
28 #include "runtime/serviceThread.hpp"
29 #include "runtime/mutexLocker.hpp"
30 #include "runtime/os.hpp"
31 #include "prims/jvmtiImpl.hpp"
32 #include "services/diagnosticArgument.hpp"
33 #include "services/diagnosticFramework.hpp"
34 #include "services/gcNotifier.hpp"
35 #include "services/lowMemoryDetector.hpp"
36
37 ServiceThread* ServiceThread::_instance = NULL;
38
39 void ServiceThread::initialize() {
40 EXCEPTION_MARK;
41
42 instanceKlassHandle klass (THREAD, SystemDictionary::Thread_klass());
43 instanceHandle thread_oop = klass->allocate_instance_handle(CHECK);
44
45 const char* name = "Service Thread";
46
47 Handle string = java_lang_String::create_from_str(name, CHECK);
48
49 // Initialize thread_oop to put it into the system threadGroup
50 Handle thread_group (THREAD, Universe::system_thread_group());
51 JavaValue result(T_VOID);
52 JavaCalls::call_special(&result, thread_oop,
53 klass,
54 vmSymbols::object_initializer_name(),
55 vmSymbols::threadgroup_string_void_signature(),
|