< prev index next >

src/hotspot/share/runtime/biasedLocking.cpp

Print this page

        

*** 47,57 **** static GrowableArray<Handle>* _preserved_oop_stack = NULL; static GrowableArray<markOop>* _preserved_mark_stack = NULL; static void enable_biased_locking(InstanceKlass* k) { ! k->set_prototype_header(markOopDesc::biased_locking_prototype()); } class VM_EnableBiasedLocking: public VM_Operation { private: bool _is_cheap_allocated; --- 47,59 ---- static GrowableArray<Handle>* _preserved_oop_stack = NULL; static GrowableArray<markOop>* _preserved_mark_stack = NULL; static void enable_biased_locking(InstanceKlass* k) { ! if (!k->is_value()) { ! k->set_prototype_header(markOopDesc::biased_locking_prototype()); ! } } class VM_EnableBiasedLocking: public VM_Operation { private: bool _is_cheap_allocated;
< prev index next >