comparison src/share/vm/oops/oop.inline.hpp @ 1942:00bc9eaf0e24

Support for -XX:+UseFastLocking flag. Fixed monitor enter XIR template for correct debug info at the runtime call.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Wed, 29 Dec 2010 20:06:41 +0100
parents d55217dc206f
children 06f017f7daa7
comparison
equal deleted inserted replaced
1941:79d04223b8a5 1942:00bc9eaf0e24
531 531
532 532
533 // used only for asserts 533 // used only for asserts
534 inline bool oopDesc::is_oop(bool ignore_mark_word) const { 534 inline bool oopDesc::is_oop(bool ignore_mark_word) const {
535 oop obj = (oop) this; 535 oop obj = (oop) this;
536 if (!check_obj_alignment(obj)) return false; 536 if (!check_obj_alignment(obj)) { tty->print_cr("unaligned"); return false; }
537 if (!Universe::heap()->is_in_reserved(obj)) return false; 537 if (!Universe::heap()->is_in_reserved(obj)) { tty->print_cr("not in reserved"); return false; }
538 // obj is aligned and accessible in heap 538 // obj is aligned and accessible in heap
539 // try to find metaclass cycle safely without seg faulting on bad input 539 // try to find metaclass cycle safely without seg faulting on bad input
540 // we should reach klassKlassObj by following klass link at most 3 times 540 // we should reach klassKlassObj by following klass link at most 3 times
541 for (int i = 0; i < 3; i++) { 541 for (int i = 0; i < 3; i++) {
542 obj = obj->klass_or_null(); 542 obj = obj->klass_or_null();