< prev index next >

src/hotspot/share/oops/methodData.hpp

Print this page

        

@@ -556,30 +556,24 @@
   virtual int cell_count() const {
     return static_cell_count();
   }
 
   // Direct accessor
-  int count() const {
-    intptr_t raw_data = intptr_at(count_off);
-    if (raw_data > max_jint) {
-      raw_data = max_jint;
-    } else if (raw_data < min_jint) {
-      raw_data = min_jint;
-    }
-    return int(raw_data);
+  uint count() const {
+    return uint_at(count_off);
   }
 
   // Code generation support
   static ByteSize count_offset() {
     return cell_offset(count_off);
   }
   static ByteSize counter_data_size() {
     return cell_offset(counter_cell_count);
   }
 
-  void set_count(int count) {
-    set_int_at(count_off, count);
+  void set_count(uint count) {
+    set_uint_at(count_off, count);
   }
 
   void print_data_on(outputStream* st, const char* extra = NULL) const;
 };
 

@@ -2390,11 +2384,11 @@
     return _nof_decompiles;
   }
   void inc_decompile_count() {
     _nof_decompiles += 1;
     if (decompile_count() > (uint)PerMethodRecompilationCutoff) {
-      method()->set_not_compilable("decompile_count > PerMethodRecompilationCutoff", CompLevel_full_optimization);
+      method()->set_not_compilable(CompLevel_full_optimization, true, "decompile_count > PerMethodRecompilationCutoff");
     }
   }
   uint tenure_traps() const {
     return _tenure_traps;
   }
< prev index next >