src/share/vm/oops/method.hpp

changeset 1
2d8a650513c2
parent 0
f90c822e73f8
child 26
ed5b982c0b0e
     1.1 --- a/src/share/vm/oops/method.hpp	Wed Apr 27 01:25:04 2016 +0800
     1.2 +++ b/src/share/vm/oops/method.hpp	Fri Apr 29 00:06:10 2016 +0800
     1.3 @@ -22,6 +22,12 @@
     1.4   *
     1.5   */
     1.6  
     1.7 +/*
     1.8 + * This file has been modified by Loongson Technology in 2015. These
     1.9 + * modifications are Copyright (c) 2015 Loongson Technology, and are made
    1.10 + * available on the same license terms set forth above.
    1.11 + */
    1.12 +
    1.13  #ifndef SHARE_VM_OOPS_METHODOOP_HPP
    1.14  #define SHARE_VM_OOPS_METHODOOP_HPP
    1.15  
    1.16 @@ -120,6 +126,10 @@
    1.17  #ifndef PRODUCT
    1.18    int               _compiled_invocation_count;  // Number of nmethod invocations so far (for perf. debugging)
    1.19  #endif
    1.20 +#ifdef MIPS64
    1.21 +  int _num_of_requests;
    1.22 +  int _decay_counter;
    1.23 +#endif
    1.24    // Entry point for calling both from and to the interpreter.
    1.25    address _i2i_entry;           // All-args-on-stack calling convention
    1.26    // Adapter blob (i2c/c2i) for this Method*. Set once when method is linked.
    1.27 @@ -162,7 +172,15 @@
    1.28  
    1.29    ConstMethod* constMethod() const             { return _constMethod; }
    1.30    void set_constMethod(ConstMethod* xconst)    { _constMethod = xconst; }
    1.31 +#ifdef MIPS64
    1.32 +  void incr_num_of_requests(int increment)     { _num_of_requests += increment; }
    1.33 +  void set_num_of_requests(int new_num)        { _num_of_requests = new_num; }
    1.34 +  int  get_num_of_requests() const             { return _num_of_requests; }
    1.35  
    1.36 +  void incr_decay_counter(int increment)     { _decay_counter += increment; }
    1.37 +  void set_decay_counter(int new_num)        { _decay_counter = new_num; }
    1.38 +  int  get_decay_counter() const             { return _decay_counter; }
    1.39 +#endif
    1.40  
    1.41    static address make_adapters(methodHandle mh, TRAPS);
    1.42    volatile address from_compiled_entry() const   { return (address)OrderAccess::load_ptr_acquire(&_from_compiled_entry); }

mercurial