src/share/vm/runtime/compilationPolicy.hpp

changeset 3035
43f9d800f276
parent 2988
2c359f27615c
child 3452
20334ed5ed3c
     1.1 --- a/src/share/vm/runtime/compilationPolicy.hpp	Fri Jul 15 15:35:50 2011 -0700
     1.2 +++ b/src/share/vm/runtime/compilationPolicy.hpp	Wed Jul 20 18:04:17 2011 -0700
     1.3 @@ -59,6 +59,8 @@
     1.4    // Profiling
     1.5    elapsedTimer* accumulated_time() { return &_accumulated_time; }
     1.6    void print_time() PRODUCT_RETURN;
     1.7 +  // Return initial compile level that is used with Xcomp
     1.8 +  virtual CompLevel initial_compile_level() = 0;
     1.9    virtual int compiler_count(CompLevel comp_level) = 0;
    1.10    // main notification entry, return a pointer to an nmethod if the OSR is required,
    1.11    // returns NULL otherwise.
    1.12 @@ -94,6 +96,7 @@
    1.13    void reset_counter_for_back_branch_event(methodHandle method);
    1.14  public:
    1.15    NonTieredCompPolicy() : _compiler_count(0) { }
    1.16 +  virtual CompLevel initial_compile_level() { return CompLevel_initial_compile; }
    1.17    virtual int compiler_count(CompLevel comp_level);
    1.18    virtual void do_safepoint_work();
    1.19    virtual void reprofile(ScopeDesc* trap_scope, bool is_osr);

mercurial