Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8067026 Dead Code Cleanup Umbrella Bug
  3. JDK-6717309

Plugin2: Clean-up for possible multi-thread unsafe codes as per Findbugs result from security audit

    Details

    • Subcomponent:
    • Resolved In Build:
      b05
    • CPU:
      x86
    • OS:
      windows

      Backports

        Description

        The following areas of code in plugin2 should be re-eval/clean-up/find alternative solution to avoid potential race/deadlock:

        1) Constructor invokes Thread.start(). If the class is subclass, the thread will get started before the constructor of subclass starts.
          - sun.plugin2.message.Pipe
        2) empty synchronized block:
          - sun.plugin2.aplet.Plugin2Manager.waitUntilAppletInitDone() --> quite dubious
        3) Inconsistent synchronization:
          - sun.plugin2.main.server.IExplorerPlugin.$BackgroundStarter's _delayed variable
          - sun.plugin2.main.server.JVMInstance.restart()'s restartable variable
        4) Unconditional wait() on synchronized object:
          - com.sun.deploy.util.DeloyAWTUtil.$AWTInvocationLock
          - sun.plugin.util.PluginSysUtil.createAppContext()
          - sun.plugin.util.PluginSysUtil.execute()
        5) synchronized set() but unsynchronized get()
          - sun.plugin2.applet.Plugin2Manager.getAppletParentContainer()

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dtitov Daniil Titov
                  Reporter:
                  cbensen Chris Bensen (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: