hotspot/src/share/vm/runtime/compilationPolicy.hpp
changeset 38139 cf6f5c1b7205
parent 38133 78b95467b9f1
child 46727 6e4a84748e2c
--- a/hotspot/src/share/vm/runtime/compilationPolicy.hpp	Wed Apr 27 13:37:07 2016 -0700
+++ b/hotspot/src/share/vm/runtime/compilationPolicy.hpp	Wed Apr 27 16:20:49 2016 -0700
@@ -43,13 +43,19 @@
   static elapsedTimer       _accumulated_time;
 
   static bool               _in_vm_startup;
+
+  // m must be compiled before executing it
+  static bool must_be_compiled(methodHandle m, int comp_level = CompLevel_all);
+
 public:
   static  void set_in_vm_startup(bool in_vm_startup) { _in_vm_startup = in_vm_startup; }
   static  void completed_vm_startup();
   static  bool delay_compilation_during_startup()    { return _in_vm_startup; }
 
-  // m must be compiled before executing it
-  static bool must_be_compiled(methodHandle m, int comp_level = CompLevel_all);
+  // If m must_be_compiled then request a compilation from the CompileBroker.
+  // This supports the -Xcomp option.
+  static void compile_if_required(methodHandle m, TRAPS);
+
   // m is allowed to be compiled
   static bool can_be_compiled(methodHandle m, int comp_level = CompLevel_all);
   // m is allowed to be osr compiled