Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/oops/instanceKlass.cpp
          +++ new/src/share/vm/oops/instanceKlass.cpp
↓ open down ↓ 1398 lines elided ↑ open up ↑
1399 1399    int increment()                         { _count += 1; return _count; }
1400 1400    int decrement()                         { _count -= 1; assert(_count >= 0, "don't underflow"); return _count; }
1401 1401    nmethodBucket* next()                   { return _next; }
1402 1402    void set_next(nmethodBucket* b)         { _next = b; }
1403 1403    nmethod* get_nmethod()                  { return _nmethod; }
1404 1404  };
1405 1405  
1406 1406  
1407 1407  //
1408 1408  // Walk the list of dependent nmethods searching for nmethods which
1409      -// are dependent on the klassOop that was passed in and mark them for
     1409 +// are dependent on the changes that were passed in and mark them for
1410 1410  // deoptimization.  Returns the number of nmethods found.
1411 1411  //
1412 1412  int instanceKlass::mark_dependent_nmethods(DepChange& changes) {
1413 1413    assert_locked_or_safepoint(CodeCache_lock);
1414 1414    int found = 0;
1415 1415    nmethodBucket* b = _dependencies;
1416 1416    while (b != NULL) {
1417 1417      nmethod* nm = b->get_nmethod();
1418 1418      // since dependencies aren't removed until an nmethod becomes a zombie,
1419 1419      // the dependency list may contain nmethods which aren't alive.
↓ open down ↓ 1554 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX