comparison src/share/vm/oops/methodDataOop.hpp @ 3905:c26de9aef2ed

7071307: MethodHandle bimorphic inlining should consider the frequency Reviewed-by: twisti, roland, kvn, iveresov
author never
date Fri, 02 Sep 2011 20:58:21 -0700
parents bad7ecd0b6ed
children f7251c729b31
comparison
equal deleted inserted replaced
3902:11a4af030e4b 3905:c26de9aef2ed
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);