--- a/hotspot/src/share/vm/oops/methodDataOop.hpp Fri Sep 02 04:28:59 2011 -0700
+++ b/hotspot/src/share/vm/oops/methodDataOop.hpp Fri Sep 02 20:58:21 2011 -0700
@@ -600,6 +600,11 @@
uint taken() {
return uint_at(taken_off_set);
}
+
+ void set_taken(uint cnt) {
+ set_uint_at(taken_off_set, cnt);
+ }
+
// Saturating counter
uint inc_taken() {
uint cnt = taken() + 1;
@@ -926,6 +931,10 @@
return uint_at(not_taken_off_set);
}
+ void set_not_taken(uint cnt) {
+ set_uint_at(not_taken_off_set, cnt);
+ }
+
uint inc_not_taken() {
uint cnt = not_taken() + 1;
// Did we wrap? Will compiler screw us??