Felix
  1. Felix
  2. FELIX-908

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor 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.

      1. bundle_info.patch
        0.9 kB
        Anatoli Kazatchkov

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development