src/share/vm/runtime/advancedThresholdPolicy.hpp

Print this page
rev 4616 : fixes fill up of code cache: added command line parameter which defines a
threshold (percentage of used code cache) at which the threshold for
recompilation is increased.

@@ -199,13 +199,16 @@
   // Create MDO if necessary.
   void create_mdo(methodHandle mh, JavaThread* thread);
   // Is method profiled enough?
   bool is_method_profiled(Method* method);
 
+  double _reverse_cmdline_free_ratio;
+
 protected:
   void print_specific(EventType type, methodHandle mh, methodHandle imh, int bci, CompLevel level);
 
+  void set_reverse_cmdline_free_ratio() { _reverse_cmdline_free_ratio = 100 / (100 - (double)IncreaseCompileThresholdAt); }
   void set_start_time(jlong t) { _start_time = t;    }
   jlong start_time() const     { return _start_time; }
 
   // Submit a given method for compilation (and update the rate).
   virtual void submit_compile(methodHandle mh, int bci, CompLevel level, JavaThread* thread);