src/share/vm/oops/cpCache.cpp

changeset 7795
157895117ad5
parent 7636
fdde6a70ea85
child 7994
04ff2f6cd0eb
child 8739
0b85ccd62409
     1.1 --- a/src/share/vm/oops/cpCache.cpp	Wed Apr 29 11:22:15 2015 +0200
     1.2 +++ b/src/share/vm/oops/cpCache.cpp	Thu Apr 30 03:31:58 2015 -0700
     1.3 @@ -604,44 +604,6 @@
     1.4  // RedefineClasses() API support:
     1.5  // If any entry of this ConstantPoolCache points to any of
     1.6  // old_methods, replace it with the corresponding new_method.
     1.7 -void ConstantPoolCache::adjust_method_entries(Method** old_methods, Method** new_methods,
     1.8 -                                              int methods_length, bool * trace_name_printed) {
     1.9 -
    1.10 -  if (methods_length == 0) {
    1.11 -    // nothing to do if there are no methods
    1.12 -    return;
    1.13 -  }
    1.14 -
    1.15 -  // get shorthand for the interesting class
    1.16 -  Klass* old_holder = old_methods[0]->method_holder();
    1.17 -
    1.18 -  for (int i = 0; i < length(); i++) {
    1.19 -    if (entry_at(i)->get_interesting_method_entry(old_holder) == NULL) {
    1.20 -      // skip uninteresting methods
    1.21 -      continue;
    1.22 -    }
    1.23 -
    1.24 -    // The ConstantPoolCache contains entries for several different
    1.25 -    // things, but we only care about methods. In fact, we only care
    1.26 -    // about methods in the same class as the one that contains the
    1.27 -    // old_methods. At this point, we have an interesting entry.
    1.28 -
    1.29 -    for (int j = 0; j < methods_length; j++) {
    1.30 -      Method* old_method = old_methods[j];
    1.31 -      Method* new_method = new_methods[j];
    1.32 -
    1.33 -      if (entry_at(i)->adjust_method_entry(old_method, new_method,
    1.34 -          trace_name_printed)) {
    1.35 -        // current old_method matched this entry and we updated it so
    1.36 -        // break out and get to the next interesting entry if there one
    1.37 -        break;
    1.38 -      }
    1.39 -    }
    1.40 -  }
    1.41 -}
    1.42 -
    1.43 -// If any entry of this ConstantPoolCache points to any of
    1.44 -// old_methods, replace it with the corresponding new_method.
    1.45  void ConstantPoolCache::adjust_method_entries(InstanceKlass* holder, bool * trace_name_printed) {
    1.46    for (int i = 0; i < length(); i++) {
    1.47      ConstantPoolCacheEntry* entry = entry_at(i);

mercurial