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

ObjectMonitor verify() and print() methods are empty

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: