Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Issue 193933002: Invalidate OS-specific datetime cache on configuration change notification (Closed)

Created:
6 years, 9 months ago by jamesr
Modified:
6 years, 9 months ago
Reviewers:
ulan
CC:
v8-dev
Visibility:
Public.

Description

Invalidate OS-specific datetime cache on configuration change notification When V8 is informed that the system's date time configuration has changed, it should also drop its OS-specific caches of time zone information R=ulan@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=19808

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M src/date.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/platform.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/platform-posix.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/platform-win32.cc View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jamesr
6 years, 9 months ago (2014-03-11 01:30:18 UTC) #1
ulan
lgtm
6 years, 9 months ago (2014-03-11 08:56:06 UTC) #2
ulan
I will land this in V8 for you.
6 years, 9 months ago (2014-03-11 08:57:38 UTC) #3
ulan
Committed patchset #1 manually as r19808 (presubmit successful).
6 years, 9 months ago (2014-03-11 15:47:04 UTC) #4
jamesr
Hmm, upon further thought I doubt this is threadsafe. Consider what happens if two workers ...
6 years, 9 months ago (2014-03-11 22:24:16 UTC) #5
ulan
6 years, 9 months ago (2014-03-12 10:08:36 UTC) #6
Message was sent while issue was closed.
On 2014/03/11 22:24:16, jamesr wrote:
> Hmm, upon further thought I doubt this is threadsafe.  Consider what happens
if
> two workers are trying to query time zone information at the same time after
the
> cache has been invalidated - they'll simultaneously attempt to populate this.

You're right! There is a race. I uploaded a CL that makes this cache per
isolate: https://codereview.chromium.org/197023002/

Powered by Google App Engine
This is Rietveld 408576698