Make Sensor deeply immutably thread safe

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: None
    • Component/s: core-svc
    • None

      Google's experimental java race detector doesn't like the Sensor class, despite the use of synchronization. It appears that Sensor instances are published without synchronization. We can fix this by making all Sensor fields final or default-initialized (saving a few bytes of bytecode). Fixes a theoretical race unlikely to cause a problem in practice.

            Assignee:
            Martin Buchholz
            Reporter:
            Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: