diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-08-23 13:56:03 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-08-26 10:35:51 -0700 |
commit | de2233bbf64c7dde96513a729f6a97aebc2f0424 (patch) | |
tree | 0967f7f72bbea48bfa2e96769cadb43337e40d95 /test/ProfileTestMultiDex/Main.java | |
parent | 506bcfc66454555f792fbc7893ff3b2877c9b288 (diff) |
Fix race condition in TransitionCollector.
There was a minor race condition that could happen if multiple
threads called TransitionCollector at the same time. Starting out
in CMS:
Thread 1: TransitionCollector(SS).
Thread 2: TransitionCollector(CMS) sees that it is already CMS so
has copying_transition == false. But then thread 2 changes to SS.
Thread 1 resumes but incorrectly doesn't check the
disable_moving_gc_count_ possibly resulting in errors if
disable_moving_gc_count_ != 0 due to JNI since we are going from
SS -> CMS and are goign to move objects.
Bug: 17189964
Change-Id: I4f0d002717516b81355d66f26e0e8ebe3958348d
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions