hotspot/src/share/vm/oops/method.cpp
changeset 46768 58f648e29a26
parent 46746 ea379ebb9447
child 46996 9cbcd7082efe
equal deleted inserted replaced
46767:e2bb2b8ff65a 46768:58f648e29a26
  1629 void Method::sort_methods(Array<Method*>* methods, bool idempotent, bool set_idnums) {
  1629 void Method::sort_methods(Array<Method*>* methods, bool idempotent, bool set_idnums) {
  1630   int length = methods->length();
  1630   int length = methods->length();
  1631   if (length > 1) {
  1631   if (length > 1) {
  1632     {
  1632     {
  1633       NoSafepointVerifier nsv;
  1633       NoSafepointVerifier nsv;
  1634       QuickSort::sort<Method*>(methods->data(), length, method_comparator, idempotent);
  1634       QuickSort::sort(methods->data(), length, method_comparator, idempotent);
  1635     }
  1635     }
  1636     // Reset method ordering
  1636     // Reset method ordering
  1637     if (set_idnums) {
  1637     if (set_idnums) {
  1638       for (int i = 0; i < length; i++) {
  1638       for (int i = 0; i < length; i++) {
  1639         Method* m = methods->at(i);
  1639         Method* m = methods->at(i);