Ticket #6488 (new defect)

Bug contains 2 commit(s) | SVN Diffs for #6488

 

Opened 3 weeks ago

Time Zone Mutex fixes

Reported by: andy Assigned to: andy
Priority: major Milestone: 4.1.1
Component: time_calc Version:
Keywords: Cc:
Load: Xref:
Java Version: Operating System:
Project (C/J): ICU4C Weeks: .1
Review: dbertoni

Description

Review and cleanup of mutexes in timezones.

There is a race in the initialization of TZDATA_VERSION. The first byte of the string is being used as the flag to indicate that it has been initialized. A second thread could potentially see the string with the first byte set, but with less than the full string set.

Also are places where mutexes are being held longer than they need to be.

Attachments


Add/Change #6488 (Time Zone Mutex fixes)




Anti spam check: