mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
![]() CModelListener.addLastRecentlyUsed (thrown in LinkedHashMap$LinkedHashIterator.nextNode) CModelListener reacts on all the resource events, but is NOT MT-safe due the not guarded access to the "fLRUs" map, which can be iterated AND modified at same time by different threads. This commit introduces synchronization on the "fLRUs" map field. This is safe as the field is private and not exposed to other objects, and the code inside synchronized block does not call into other locks which might interfere. Change-Id: I3e601f02e93e40a1454c9a581fa46378904eb3dc Signed-off-by: Andrey Loskutov <loskutov@gmx.de> |
||
---|---|---|
.. | ||
org.eclipse.cdt.core | ||
org.eclipse.cdt.core.linux | ||
org.eclipse.cdt.core.linux.ppc | ||
org.eclipse.cdt.core.linux.ppc64 | ||
org.eclipse.cdt.core.linux.ppc64le | ||
org.eclipse.cdt.core.linux.x86 | ||
org.eclipse.cdt.core.linux.x86_64 | ||
org.eclipse.cdt.core.macosx | ||
org.eclipse.cdt.core.native | ||
org.eclipse.cdt.core.tests | ||
org.eclipse.cdt.core.win32 | ||
org.eclipse.cdt.core.win32.x86 | ||
org.eclipse.cdt.core.win32.x86_64 | ||
org.eclipse.cdt.ui | ||
org.eclipse.cdt.ui.tests | ||
pom.xml |