comparison src/share/vm/gc_implementation/shared/concurrentGCThread.cpp @ 2177:3582bf76420e

6990754: Use native memory and reference counting to implement SymbolTable Summary: move symbols from permgen into C heap and reference count them Reviewed-by: never, acorn, jmasa, stefank
author coleenp
date Thu, 27 Jan 2011 16:11:27 -0800
parents f95d63e2154a
children 1d1603768966
comparison
equal deleted inserted replaced
2176:27e4ea99855d 2177:3582bf76420e
185 _buffer(empty) 185 _buffer(empty)
186 {} 186 {}
187 187
188 SurrogateLockerThread* SurrogateLockerThread::make(TRAPS) { 188 SurrogateLockerThread* SurrogateLockerThread::make(TRAPS) {
189 klassOop k = 189 klassOop k =
190 SystemDictionary::resolve_or_fail(vmSymbolHandles::java_lang_Thread(), 190 SystemDictionary::resolve_or_fail(vmSymbols::java_lang_Thread(),
191 true, CHECK_NULL); 191 true, CHECK_NULL);
192 instanceKlassHandle klass (THREAD, k); 192 instanceKlassHandle klass (THREAD, k);
193 instanceHandle thread_oop = klass->allocate_instance_handle(CHECK_NULL); 193 instanceHandle thread_oop = klass->allocate_instance_handle(CHECK_NULL);
194 194
195 const char thread_name[] = "Surrogate Locker Thread (Concurrent GC)"; 195 const char thread_name[] = "Surrogate Locker Thread (Concurrent GC)";
198 // Initialize thread_oop to put it into the system threadGroup 198 // Initialize thread_oop to put it into the system threadGroup
199 Handle thread_group (THREAD, Universe::system_thread_group()); 199 Handle thread_group (THREAD, Universe::system_thread_group());
200 JavaValue result(T_VOID); 200 JavaValue result(T_VOID);
201 JavaCalls::call_special(&result, thread_oop, 201 JavaCalls::call_special(&result, thread_oop,
202 klass, 202 klass,
203 vmSymbolHandles::object_initializer_name(), 203 vmSymbols::object_initializer_name(),
204 vmSymbolHandles::threadgroup_string_void_signature(), 204 vmSymbols::threadgroup_string_void_signature(),
205 thread_group, 205 thread_group,
206 string, 206 string,
207 CHECK_NULL); 207 CHECK_NULL);
208 208
209 SurrogateLockerThread* res; 209 SurrogateLockerThread* res;