Mercurial > hg > truffle
comparison src/share/vm/oops/oop.inline.hpp @ 2212:d9e4d0aefc90
Small clean up to reduce delta to OpenJDK.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 21 Feb 2011 19:28:35 +0100 |
parents | 0cd39a385a72 |
children | 0654ee04b214 |
comparison
equal
deleted
inserted
replaced
2211:0cd39a385a72 | 2212:d9e4d0aefc90 |
---|---|
567 | 567 |
568 | 568 |
569 // used only for asserts | 569 // used only for asserts |
570 inline bool oopDesc::is_oop(bool ignore_mark_word) const { | 570 inline bool oopDesc::is_oop(bool ignore_mark_word) const { |
571 oop obj = (oop) this; | 571 oop obj = (oop) this; |
572 if (!check_obj_alignment(obj)) { tty->print_cr("unaligned"); return false; } | 572 if (!check_obj_alignment(obj)) return false; |
573 if (!Universe::heap()->is_in_reserved(obj)) { tty->print_cr("not in reserved"); return false; } | 573 if (!Universe::heap()->is_in_reserved(obj)) return false; |
574 // obj is aligned and accessible in heap | 574 // obj is aligned and accessible in heap |
575 // try to find metaclass cycle safely without seg faulting on bad input | 575 // try to find metaclass cycle safely without seg faulting on bad input |
576 // we should reach klassKlassObj by following klass link at most 3 times | 576 // we should reach klassKlassObj by following klass link at most 3 times |
577 for (int i = 0; i < 3; i++) { | 577 for (int i = 0; i < 3; i++) { |
578 obj = obj->klass_or_null(); | 578 obj = obj->klass_or_null(); |