Mercurial > hg > truffle
comparison src/share/vm/oops/methodDataOop.hpp @ 4137:04b9a2566eec
Merge with hsx23/hotspot.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 17 Dec 2011 21:40:27 +0100 |
parents | c26de9aef2ed |
children | f7251c729b31 |
comparison
equal
deleted
inserted
replaced
3737:9dc19b7d89a3 | 4137:04b9a2566eec |
---|---|
598 | 598 |
599 // Direct accessor | 599 // Direct accessor |
600 uint taken() { | 600 uint taken() { |
601 return uint_at(taken_off_set); | 601 return uint_at(taken_off_set); |
602 } | 602 } |
603 | |
604 void set_taken(uint cnt) { | |
605 set_uint_at(taken_off_set, cnt); | |
606 } | |
607 | |
603 // Saturating counter | 608 // Saturating counter |
604 uint inc_taken() { | 609 uint inc_taken() { |
605 uint cnt = taken() + 1; | 610 uint cnt = taken() + 1; |
606 // Did we wrap? Will compiler screw us?? | 611 // Did we wrap? Will compiler screw us?? |
607 if (cnt == 0) cnt--; | 612 if (cnt == 0) cnt--; |
924 // Direct accessor | 929 // Direct accessor |
925 uint not_taken() { | 930 uint not_taken() { |
926 return uint_at(not_taken_off_set); | 931 return uint_at(not_taken_off_set); |
927 } | 932 } |
928 | 933 |
934 void set_not_taken(uint cnt) { | |
935 set_uint_at(not_taken_off_set, cnt); | |
936 } | |
937 | |
929 uint inc_not_taken() { | 938 uint inc_not_taken() { |
930 uint cnt = not_taken() + 1; | 939 uint cnt = not_taken() + 1; |
931 // Did we wrap? Will compiler screw us?? | 940 // Did we wrap? Will compiler screw us?? |
932 if (cnt == 0) cnt--; | 941 if (cnt == 0) cnt--; |
933 set_uint_at(not_taken_off_set, cnt); | 942 set_uint_at(not_taken_off_set, cnt); |