Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-101

AgentProviderService#metainfo should be declared volatile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Slider 0.30
    • None
    • None

    Description

      In AgentProviderService#buildContainerLaunchContext():

          if (metainfo == null) {
            synchronized (syncLock) {
              if (metainfo == null) {
                metainfo = getApplicationMetainfo(fileSystem, appDef);
      

      For double checked locking to work, metainfo should be declared volatile.

      Attachments

        1. slider-101.txt
          2 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: