jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55827] Iteration over a view on a synchronized collection without obtaining a lock on the collection
Date Tue, 07 Feb 2017 22:29:19 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=55827

--- Comment #6 from Philippe Mouawad <p.mouawad@ubik-ingenierie.com> ---
(In reply to Vladimir Sitnikov from comment #5)
> As far as I can see, the syncrhonizedMap was added in attempt to fix
> https://bz.apache.org/bugzilla/show_bug.cgi?id=16304
> The latest reply suggests that the synchronization did not help.
> 
> So I do not see much reason to complicate code.
> I don't think it would hurt, yet I see no reason how it would help.

Thanks Felix for digging, interesting indeed.

A question for you, I have a doubt. In my understanding, calling synchronized
in monothreaded call has a cost:
http://stackoverflow.com/questions/973518/are-synchronized-methods-slower-in-single-threaded-applications

Do you confirm this from benchmarks you did ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message