Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/oop.inline.hpp @ 6818:22b8d3d181d9
8000351: Tenuring threshold should be unsigned
Summary: Change the flags and variables related to tenuring threshold to be unsigned
Reviewed-by: jmasa, johnc
author | jwilhelm |
---|---|
date | Wed, 03 Oct 2012 20:31:41 +0200 |
parents | 46c017102631 |
children | 8e47bac5643a |
comparison
equal
deleted
inserted
replaced
6817:f81a7c0c618d | 6818:22b8d3d181d9 |
---|---|
691 inline void oopDesc::set_displaced_mark(markOop m) { | 691 inline void oopDesc::set_displaced_mark(markOop m) { |
692 mark()->set_displaced_mark_helper(m); | 692 mark()->set_displaced_mark_helper(m); |
693 } | 693 } |
694 | 694 |
695 // The following method needs to be MT safe. | 695 // The following method needs to be MT safe. |
696 inline int oopDesc::age() const { | 696 inline uint oopDesc::age() const { |
697 assert(!is_forwarded(), "Attempt to read age from forwarded mark"); | 697 assert(!is_forwarded(), "Attempt to read age from forwarded mark"); |
698 if (has_displaced_mark()) { | 698 if (has_displaced_mark()) { |
699 return displaced_mark()->age(); | 699 return displaced_mark()->age(); |
700 } else { | 700 } else { |
701 return mark()->age(); | 701 return mark()->age(); |