Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8171848

ObjectMonitor verify() and print() methods are empty

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • hotspot
    • b21

      ObjectMonitor verify() and print() methods are empty

      I failed to find any actual calls to print() and only one call to verify()

      verify is called from the following code in ObjectSynchronizer::verify() :

          for (int i = 1; i < _BLOCKSIZE; i++) {
            ObjectMonitor* mid = (ObjectMonitor *)(block + i);
            oop object = (oop)mid->object();
            if (object != NULL) {
              mid->verify();
            }
          }

      This code (in my understanding) does not do any checks and is dead too

            kzhaldyb Kirill Zhaldybin (Inactive)
            kzhaldyb Kirill Zhaldybin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: