Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/management.cpp @ 2195:bf8517f4e4d0
6766644: Redefinition of compiled method fails with assertion "Can not load classes with the Compiler thread"
Summary: Defer posting events from the compiler thread: use service thread
Reviewed-by: coleenp, dholmes, never, dcubed
author | kamg |
---|---|
date | Wed, 02 Feb 2011 14:38:01 -0500 |
parents | 3582bf76420e |
children | f7702f8c0e25 |
comparison
equal
deleted
inserted
replaced
2194:face83fc8882 | 2195:bf8517f4e4d0 |
---|---|
36 #include "runtime/handles.inline.hpp" | 36 #include "runtime/handles.inline.hpp" |
37 #include "runtime/interfaceSupport.hpp" | 37 #include "runtime/interfaceSupport.hpp" |
38 #include "runtime/javaCalls.hpp" | 38 #include "runtime/javaCalls.hpp" |
39 #include "runtime/jniHandles.hpp" | 39 #include "runtime/jniHandles.hpp" |
40 #include "runtime/os.hpp" | 40 #include "runtime/os.hpp" |
41 #include "runtime/serviceThread.hpp" | |
41 #include "services/classLoadingService.hpp" | 42 #include "services/classLoadingService.hpp" |
42 #include "services/heapDumper.hpp" | 43 #include "services/heapDumper.hpp" |
43 #include "services/lowMemoryDetector.hpp" | 44 #include "services/lowMemoryDetector.hpp" |
44 #include "services/management.hpp" | 45 #include "services/management.hpp" |
45 #include "services/memoryManager.hpp" | 46 #include "services/memoryManager.hpp" |
110 #endif // SERVICES_KERNEL | 111 #endif // SERVICES_KERNEL |
111 _optional_support.isThreadAllocatedMemorySupported = 1; | 112 _optional_support.isThreadAllocatedMemorySupported = 1; |
112 } | 113 } |
113 | 114 |
114 void Management::initialize(TRAPS) { | 115 void Management::initialize(TRAPS) { |
115 // Start the low memory detector thread | 116 // Start the service thread |
116 LowMemoryDetector::initialize(); | 117 ServiceThread::initialize(); |
117 | 118 |
118 if (ManagementServer) { | 119 if (ManagementServer) { |
119 ResourceMark rm(THREAD); | 120 ResourceMark rm(THREAD); |
120 HandleMark hm(THREAD); | 121 HandleMark hm(THREAD); |
121 | 122 |