Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-908

Unsynchronize access to bundle state inside BundleInfo by making the variable volatile

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • framework-1.2.1
    • framework-1.6.0
    • Framework
    • None

    Description

      Synchronized access to bundle state inside BundleInfo class creates an unnecessary contention point in environments where bundle.getState() is called a lot.
      Declaring m_state variable volatile and removing synchronization from setState() and getState() will do the trick.I will attach the patch.

      Attachments

        1. bundle_info.patch
          0.9 kB
          Anatoli Kazatchkov

        Activity

          People

            rickhall Richard S. Hall
            anatoli Anatoli Kazatchkov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: