Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901055

Agent.Pool.instance() is not thread safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • jtreg4.1
    • None
    • tools
    • None
    • b10

      I just happened to notice that this code can end up giving us two or more pools of agents. While not fatal, it is at least unexpected.

              private static Pool instance;

              static Pool instance() {
                  if (instance == null)
                      instance = new Pool();
                  return instance;
              }

            jjg Jonathan Gibbons
            sla Staffan Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: