diff options
author | Joachim Sauer <jsauer@google.com> | 2016-08-22 10:59:43 +0100 |
---|---|---|
committer | Joachim Sauer <jsauer@google.com> | 2016-08-22 11:26:49 +0100 |
commit | 5cba97329f324ba0ef5fc09da79e9ef01231164a (patch) | |
tree | 5329a95c0bf0783a79d45b8947e1040da99b8714 /annotations/generate_annotated_java_files.py | |
parent | 286de099d6ae5cfa2d59df4b6db9ea85fb94bfac (diff) |
Test race condition in ICU TimeZone.getDefault()
TimeZone.getDefault() has a race condition where it could fail with a
NullPointerException if called concurrently with clearCachedDefault().
This test probabilistically tests for it, by calling getDefault() and
clearCachedDefault() in tight loops. It was able to reproduce the
problem in 5/5 cases (on a bullhead device).
Bug: 30979219
Test: vogar
libcore/luni/src/test/java/libcore/java/util/TimeZoneTest.java
Change-Id: Ied36c391d0592729c6170cb60225e4088e3958ff
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions