equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 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. |
38 ServiceThread* ServiceThread::_instance = NULL; |
38 ServiceThread* ServiceThread::_instance = NULL; |
39 |
39 |
40 void ServiceThread::initialize() { |
40 void ServiceThread::initialize() { |
41 EXCEPTION_MARK; |
41 EXCEPTION_MARK; |
42 |
42 |
43 instanceKlassHandle klass (THREAD, SystemDictionary::Thread_klass()); |
43 InstanceKlass* klass = SystemDictionary::Thread_klass(); |
44 instanceHandle thread_oop = klass->allocate_instance_handle(CHECK); |
44 instanceHandle thread_oop = klass->allocate_instance_handle(CHECK); |
45 |
45 |
46 const char* name = "Service Thread"; |
46 const char* name = "Service Thread"; |
47 |
47 |
48 Handle string = java_lang_String::create_from_str(name, CHECK); |
48 Handle string = java_lang_String::create_from_str(name, CHECK); |