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

Possible synchonization issue in jdk/internal/jimage/ImageReader.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 9, 25
    • tools
    • None

      In the private `close()` method of SharedImageReader (called from the public `ImageReader#close()` method) the nodes cache is cleared with the `OPEN_FILES` map locked.
      However the `nodes` cache is otherwise only read/written while the `SharedImageReader` instance is locked.
      This code around this still needs to synchronize on the `OPEN_FILES` map, but I think the nodes cache should be cleared separately after unlocking the `OPEN_FILES` map and resynchronizing the shared reader.

            henryjen Henry Jen
            dabeaumo David Beaumont
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: