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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: framework-1.2.1
    • Fix Version/s: framework-1.6.0
    • Component/s: Framework
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: