src/share/vm/oops/instanceKlass.cpp

changeset 3138
f6f3bb0ee072
parent 3137
e6b1331a51d2
child 3156
f08d439fab8c
     1.1 --- a/src/share/vm/oops/instanceKlass.cpp	Sat Sep 10 17:29:02 2011 -0700
     1.2 +++ b/src/share/vm/oops/instanceKlass.cpp	Sun Sep 11 14:48:24 2011 -0700
     1.3 @@ -1372,37 +1372,6 @@
     1.4  
     1.5  
     1.6  //
     1.7 -// nmethodBucket is used to record dependent nmethods for
     1.8 -// deoptimization.  nmethod dependencies are actually <klass, method>
     1.9 -// pairs but we really only care about the klass part for purposes of
    1.10 -// finding nmethods which might need to be deoptimized.  Instead of
    1.11 -// recording the method, a count of how many times a particular nmethod
    1.12 -// was recorded is kept.  This ensures that any recording errors are
    1.13 -// noticed since an nmethod should be removed as many times are it's
    1.14 -// added.
    1.15 -//
    1.16 -class nmethodBucket {
    1.17 - private:
    1.18 -  nmethod*       _nmethod;
    1.19 -  int            _count;
    1.20 -  nmethodBucket* _next;
    1.21 -
    1.22 - public:
    1.23 -  nmethodBucket(nmethod* nmethod, nmethodBucket* next) {
    1.24 -    _nmethod = nmethod;
    1.25 -    _next = next;
    1.26 -    _count = 1;
    1.27 -  }
    1.28 -  int count()                             { return _count; }
    1.29 -  int increment()                         { _count += 1; return _count; }
    1.30 -  int decrement()                         { _count -= 1; assert(_count >= 0, "don't underflow"); return _count; }
    1.31 -  nmethodBucket* next()                   { return _next; }
    1.32 -  void set_next(nmethodBucket* b)         { _next = b; }
    1.33 -  nmethod* get_nmethod()                  { return _nmethod; }
    1.34 -};
    1.35 -
    1.36 -
    1.37 -//
    1.38  // Walk the list of dependent nmethods searching for nmethods which
    1.39  // are dependent on the changes that were passed in and mark them for
    1.40  // deoptimization.  Returns the number of nmethods found.

mercurial