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

Possible race condition after JDK-6664509

XMLWordPrintable

    • b02
    • other
    • other
    • Not verified

        On 2/1/13 8:11 AM, Mandy Chung wrote:

        By code inspection, however, I concur that there is a timing race there that a logger can
        be GC'ed where a logger exists where being queried and immediately being gc'ed after that.
        I don't think Licensee's proposed 1-line fix is a completed fix though.

        LogManager.java L 633-635
                    if (!manager.addLogger(result) && result.getHandlers().length == 0) {
                        // if logger already exists but handlers not set
                        final Logger l = manager.getLogger(name);
                        final Logger logger = result;

              mchung Mandy Chung (Inactive)
              dkorbel David Korbel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: