Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
OpenMRS 1.9.0, Platform 1.10.0
-
None
-
Medium
Description
ServiceContext class has methods which synchronize on refreshContext boolean variable. Java typically creates only two objects of boolean type. So its better to synchronize on a different object lock. I've tested this behavior on a test code, and indeed it seemed that java just had two objects for boolean type.
Since the ServiceContext is used quite frequently, the synchronization policy selected will impact performance.
Gliffy Diagrams
Attachments
Issue Links
- caused
-
TRUNK-3784 NPE when starting/stopping a module
-
- Closed
-