comparison src/share/vm/oops/cpCacheKlass.cpp @ 546:05c6d52fa7a9

6690928: Use spinning in combination with yields for workstealing termination. Summary: Substitute a spin loop for most calls to yield() to reduce the stress on the system. Reviewed-by: tonyp
author jmasa
date Sun, 08 Feb 2009 13:18:01 -0800
parents 9a25e0c45327
children 0fbdb4381b99
comparison
equal deleted inserted replaced
545:58054a18d735 546:05c6d52fa7a9
159 cache->entry_at(i)->adjust_pointers(); 159 cache->entry_at(i)->adjust_pointers();
160 return size; 160 return size;
161 } 161 }
162 162
163 bool constantPoolCacheKlass::oop_is_conc_safe(oop obj) const { 163 bool constantPoolCacheKlass::oop_is_conc_safe(oop obj) const {
164 assert(obj->is_constantPoolCache(), "must be constMethod oop"); 164 assert(obj->is_constantPoolCache(), "should be constant pool");
165 return constantPoolCacheOop(obj)->is_conc_safe(); 165 return constantPoolCacheOop(obj)->is_conc_safe();
166 } 166 }
167 167
168 #ifndef SERIALGC 168 #ifndef SERIALGC
169 void constantPoolCacheKlass::oop_copy_contents(PSPromotionManager* pm, 169 void constantPoolCacheKlass::oop_copy_contents(PSPromotionManager* pm,