author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 46329 | hotspot/src/share/vm/runtime/serviceThread.cpp@53ccc37bda19 |
child 49054 | fa4c8865a4ff |
permissions | -rw-r--r-- |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
1 |
/* |
46329
53ccc37bda19
8155672: Remove instanceKlassHandles and KlassHandles
coleenp
parents:
29081
diff
changeset
|
2 |
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
4 |
* |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
8 |
* |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
13 |
* accompanied this code). |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
14 |
* |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
18 |
* |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
21 |
* questions. |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
22 |
* |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
23 |
*/ |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
24 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
25 |
#include "precompiled.hpp" |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
26 |
#include "runtime/interfaceSupport.hpp" |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
27 |
#include "runtime/javaCalls.hpp" |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
28 |
#include "runtime/serviceThread.hpp" |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
29 |
#include "runtime/mutexLocker.hpp" |
22758
c6b6abb73544
7182040: volano29 limited by os resource on Linux - need better diagnostic message
iklam
parents:
17296
diff
changeset
|
30 |
#include "runtime/os.hpp" |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
31 |
#include "prims/jvmtiImpl.hpp" |
26843
1220c9e50fff
8057827: notify an obj when allocation context stats are available
jcoomes
parents:
25057
diff
changeset
|
32 |
#include "services/allocationContextService.hpp" |
17296
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
9623
diff
changeset
|
33 |
#include "services/diagnosticArgument.hpp" |
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
9623
diff
changeset
|
34 |
#include "services/diagnosticFramework.hpp" |
29081
c61eb4914428
8072911: Remove includes of oop.inline.hpp from .hpp files
stefank
parents:
26843
diff
changeset
|
35 |
#include "services/gcNotifier.hpp" |
c61eb4914428
8072911: Remove includes of oop.inline.hpp from .hpp files
stefank
parents:
26843
diff
changeset
|
36 |
#include "services/lowMemoryDetector.hpp" |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
37 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
38 |
ServiceThread* ServiceThread::_instance = NULL; |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
39 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
40 |
void ServiceThread::initialize() { |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
41 |
EXCEPTION_MARK; |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
42 |
|
46329
53ccc37bda19
8155672: Remove instanceKlassHandles and KlassHandles
coleenp
parents:
29081
diff
changeset
|
43 |
InstanceKlass* klass = SystemDictionary::Thread_klass(); |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
44 |
instanceHandle thread_oop = klass->allocate_instance_handle(CHECK); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
45 |
|
25057 | 46 |
const char* name = "Service Thread"; |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
47 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
48 |
Handle string = java_lang_String::create_from_str(name, CHECK); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
49 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
50 |
// Initialize thread_oop to put it into the system threadGroup |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
51 |
Handle thread_group (THREAD, Universe::system_thread_group()); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
52 |
JavaValue result(T_VOID); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
53 |
JavaCalls::call_special(&result, thread_oop, |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
54 |
klass, |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
55 |
vmSymbols::object_initializer_name(), |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
56 |
vmSymbols::threadgroup_string_void_signature(), |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
57 |
thread_group, |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
58 |
string, |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
59 |
CHECK); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
60 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
61 |
{ |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
62 |
MutexLocker mu(Threads_lock); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
63 |
ServiceThread* thread = new ServiceThread(&service_thread_entry); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
64 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
65 |
// At this point it may be possible that no osthread was created for the |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
66 |
// JavaThread due to lack of memory. We would have to throw an exception |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
67 |
// in that case. However, since this must work and we do not allow |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
68 |
// exceptions anyway, check and abort if this fails. |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
69 |
if (thread == NULL || thread->osthread() == NULL) { |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
70 |
vm_exit_during_initialization("java.lang.OutOfMemoryError", |
22758
c6b6abb73544
7182040: volano29 limited by os resource on Linux - need better diagnostic message
iklam
parents:
17296
diff
changeset
|
71 |
os::native_thread_creation_failed_msg()); |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
72 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
73 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
74 |
java_lang_Thread::set_thread(thread_oop(), thread); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
75 |
java_lang_Thread::set_priority(thread_oop(), NearMaxPriority); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
76 |
java_lang_Thread::set_daemon(thread_oop()); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
77 |
thread->set_threadObj(thread_oop()); |
8660
de3c4dedef24
7024234: 2/3 jvmti tests fail assert(!_oops_are_stale) failed: oops are stale on Win-AMD64
dcubed
parents:
8110
diff
changeset
|
78 |
_instance = thread; |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
79 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
80 |
Threads::add(thread); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
81 |
Thread::start(thread); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
82 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
83 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
84 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
85 |
void ServiceThread::service_thread_entry(JavaThread* jt, TRAPS) { |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
86 |
while (true) { |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
87 |
bool sensors_changed = false; |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
88 |
bool has_jvmti_events = false; |
9623
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
8660
diff
changeset
|
89 |
bool has_gc_notification_event = false; |
17296
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
9623
diff
changeset
|
90 |
bool has_dcmd_notification_event = false; |
26843
1220c9e50fff
8057827: notify an obj when allocation context stats are available
jcoomes
parents:
25057
diff
changeset
|
91 |
bool acs_notify = false; |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
92 |
JvmtiDeferredEvent jvmti_event; |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
93 |
{ |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
94 |
// Need state transition ThreadBlockInVM so that this thread |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
95 |
// will be handled by safepoint correctly when this thread is |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
96 |
// notified at a safepoint. |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
97 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
98 |
// This ThreadBlockInVM object is not also considered to be |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
99 |
// suspend-equivalent because ServiceThread is not visible to |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
100 |
// external suspension. |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
101 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
102 |
ThreadBlockInVM tbivm(jt); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
103 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
104 |
MutexLockerEx ml(Service_lock, Mutex::_no_safepoint_check_flag); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
105 |
while (!(sensors_changed = LowMemoryDetector::has_pending_requests()) && |
9623
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
8660
diff
changeset
|
106 |
!(has_jvmti_events = JvmtiDeferredEventQueue::has_events()) && |
17296
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
9623
diff
changeset
|
107 |
!(has_gc_notification_event = GCNotifier::has_event()) && |
26843
1220c9e50fff
8057827: notify an obj when allocation context stats are available
jcoomes
parents:
25057
diff
changeset
|
108 |
!(has_dcmd_notification_event = DCmdFactory::has_pending_jmx_notification()) && |
1220c9e50fff
8057827: notify an obj when allocation context stats are available
jcoomes
parents:
25057
diff
changeset
|
109 |
!(acs_notify = AllocationContextService::should_notify())) { |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
110 |
// wait until one of the sensors has pending requests, or there is a |
9623
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
8660
diff
changeset
|
111 |
// pending JVMTI event or JMX GC notification to post |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
112 |
Service_lock->wait(Mutex::_no_safepoint_check_flag); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
113 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
114 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
115 |
if (has_jvmti_events) { |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
116 |
jvmti_event = JvmtiDeferredEventQueue::dequeue(); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
117 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
118 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
119 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
120 |
if (has_jvmti_events) { |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
121 |
jvmti_event.post(); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
122 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
123 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
124 |
if (sensors_changed) { |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
125 |
LowMemoryDetector::process_sensor_changes(jt); |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
126 |
} |
9623
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
8660
diff
changeset
|
127 |
|
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
8660
diff
changeset
|
128 |
if(has_gc_notification_event) { |
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
8660
diff
changeset
|
129 |
GCNotifier::sendNotification(CHECK); |
151c0b638488
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
8660
diff
changeset
|
130 |
} |
17296
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
9623
diff
changeset
|
131 |
|
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
9623
diff
changeset
|
132 |
if(has_dcmd_notification_event) { |
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
9623
diff
changeset
|
133 |
DCmdFactory::send_notification(CHECK); |
68557efd8583
8004095: Add support for JMX interface to Diagnostic Framework and Commands
fparain
parents:
9623
diff
changeset
|
134 |
} |
26843
1220c9e50fff
8057827: notify an obj when allocation context stats are available
jcoomes
parents:
25057
diff
changeset
|
135 |
|
1220c9e50fff
8057827: notify an obj when allocation context stats are available
jcoomes
parents:
25057
diff
changeset
|
136 |
if (acs_notify) { |
1220c9e50fff
8057827: notify an obj when allocation context stats are available
jcoomes
parents:
25057
diff
changeset
|
137 |
AllocationContextService::notify(CHECK); |
1220c9e50fff
8057827: notify an obj when allocation context stats are available
jcoomes
parents:
25057
diff
changeset
|
138 |
} |
8110
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
139 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
140 |
} |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
141 |
|
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
142 |
bool ServiceThread::is_service_thread(Thread* thread) { |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
143 |
return thread == _instance; |
c992c8d52344
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
kamg
parents:
diff
changeset
|
144 |
} |