src/share/vm/compiler/compileBroker.hpp

changeset 4037
da91efe96a93
parent 3969
1d7922586cf6
child 4111
9191895df19d
     1.1 --- a/src/share/vm/compiler/compileBroker.hpp	Fri Aug 31 16:39:35 2012 -0700
     1.2 +++ b/src/share/vm/compiler/compileBroker.hpp	Sat Sep 01 13:25:18 2012 -0400
     1.3 @@ -42,7 +42,8 @@
     1.4   private:
     1.5    Monitor*     _lock;
     1.6    uint         _compile_id;
     1.7 -  jobject      _method;
     1.8 +  Method*      _method;
     1.9 +  jobject      _method_loader;
    1.10    int          _osr_bci;
    1.11    bool         _is_complete;
    1.12    bool         _is_success;
    1.13 @@ -54,7 +55,8 @@
    1.14  
    1.15    // Fields used for logging why the compilation was initiated:
    1.16    jlong        _time_queued;  // in units of os::elapsed_counter()
    1.17 -  jobject      _hot_method;   // which method actually triggered this task
    1.18 +  Method*      _hot_method;   // which method actually triggered this task
    1.19 +  jobject      _hot_method_loader;
    1.20    int          _hot_count;    // information about its invocation counter
    1.21    const char*  _comment;      // more info about the task
    1.22  
    1.23 @@ -70,7 +72,7 @@
    1.24    void free();
    1.25  
    1.26    int          compile_id() const                { return _compile_id; }
    1.27 -  jobject      method_handle() const             { return _method; }
    1.28 +  Method*      method() const                    { return _method; }
    1.29    int          osr_bci() const                   { return _osr_bci; }
    1.30    bool         is_complete() const               { return _is_complete; }
    1.31    bool         is_blocking() const               { return _is_blocking; }
    1.32 @@ -98,7 +100,7 @@
    1.33    void         set_prev(CompileTask* prev)       { _prev = prev; }
    1.34  
    1.35  private:
    1.36 -  static void  print_compilation_impl(outputStream* st, methodOop method, int compile_id, int comp_level,
    1.37 +  static void  print_compilation_impl(outputStream* st, Method* method, int compile_id, int comp_level,
    1.38                                        bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false,
    1.39                                        const char* msg = NULL, bool short_form = false);
    1.40  
    1.41 @@ -115,6 +117,9 @@
    1.42      print_inlining(tty, method, inline_level, bci, msg);
    1.43    }
    1.44  
    1.45 +  // Redefine Classes support
    1.46 +  void mark_on_stack();
    1.47 +
    1.48    static void  print_inline_indent(int inline_level, outputStream* st = tty);
    1.49  
    1.50    void         print();
    1.51 @@ -206,6 +211,9 @@
    1.52    bool         is_empty() const                  { return _first == NULL; }
    1.53    int          size()     const                  { return _size;          }
    1.54  
    1.55 +  // Redefine Classes support
    1.56 +  void mark_on_stack();
    1.57 +
    1.58    void         print();
    1.59  };
    1.60  
    1.61 @@ -400,6 +408,9 @@
    1.62      return _perf_total_compilation != NULL ? _perf_total_compilation->get_value() : 0;
    1.63    }
    1.64  
    1.65 +  // Redefine Classes support
    1.66 +  static void mark_on_stack();
    1.67 +
    1.68    // Print a detailed accounting of compilation time
    1.69    static void print_times();
    1.70  

mercurial