|
|
Chromium Code Reviews|
Created:
4 years, 4 months ago by keishi Modified:
4 years, 4 months ago CC:
chromium-reviews, blink-reviews, kouhei+heap_chromium.org, oilpan-reviews, Mads Ager (chromium) Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionCheck thread is attached when creating a Persistent
BUG=591606
Committed: https://crrev.com/33f9e3a0fb535159cbd009663b9f194fc27f4205
Cr-Commit-Position: refs/heads/master@{#413125}
Patch Set 1 #Patch Set 2 : fix #
Total comments: 1
Messages
Total messages: 19 (12 generated)
Description was changed from ========== Fix Persistent check BUG= ========== to ========== Check thread is attached when creating a Persistent BUG=591606 ==========
keishi@chromium.org changed reviewers: + haraken@chromium.org, oilpan-reviews@chromium.org
Continued from: https://codereview.chromium.org/2208673002/#msg28 I was wrong about HeapTest. Persistent can also be initialized from memset, so that's why I was seeing assertion failure. We can assert that ThreadState:current() exists when creating Persistent. This adds the same checks as Member.
The CQ bit was checked by keishi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2257333003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/platform/heap/Persistent.h (right): https://codereview.chromium.org/2257333003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/platform/heap/Persistent.h:255: if (m_creationThreadState) { Maybe would it be worth distinguishing the two cases? 1) m_creationThreadState was not set because the constructor was not called. 2) m_creationThreadState was set to nullptr because this is a CrossThreadPersistent. To distinguish the two cases, you can set a value other than nullptr for the case 2).
Patchset #3 (id:40001) has been deleted
The CQ bit was checked by keishi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/08/19 06:31:31, haraken wrote: > https://codereview.chromium.org/2257333003/diff/20001/third_party/WebKit/Sour... > File third_party/WebKit/Source/platform/heap/Persistent.h (right): > > https://codereview.chromium.org/2257333003/diff/20001/third_party/WebKit/Sour... > third_party/WebKit/Source/platform/heap/Persistent.h:255: if > (m_creationThreadState) { > > Maybe would it be worth distinguishing the two cases? > > 1) m_creationThreadState was not set because the constructor was not called. > > 2) m_creationThreadState was set to nullptr because this is a > CrossThreadPersistent. > > To distinguish the two cases, you can set a value other than nullptr for the > case 2). I tried it but CrossThreadPersistent can also be initialized with memset so 1) and 2) can mix, making assigning a different value meaningless.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/08/19 12:27:59, keishi wrote: > On 2016/08/19 06:31:31, haraken wrote: > > > https://codereview.chromium.org/2257333003/diff/20001/third_party/WebKit/Sour... > > File third_party/WebKit/Source/platform/heap/Persistent.h (right): > > > > > https://codereview.chromium.org/2257333003/diff/20001/third_party/WebKit/Sour... > > third_party/WebKit/Source/platform/heap/Persistent.h:255: if > > (m_creationThreadState) { > > > > Maybe would it be worth distinguishing the two cases? > > > > 1) m_creationThreadState was not set because the constructor was not called. > > > > 2) m_creationThreadState was set to nullptr because this is a > > CrossThreadPersistent. > > > > To distinguish the two cases, you can set a value other than nullptr for the > > case 2). > > I tried it but CrossThreadPersistent can also be initialized with memset so 1) > and 2) can mix, making assigning a different value meaningless. Thanks, makes sense. LGTM.
The CQ bit was checked by keishi@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Check thread is attached when creating a Persistent BUG=591606 ========== to ========== Check thread is attached when creating a Persistent BUG=591606 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Check thread is attached when creating a Persistent BUG=591606 ========== to ========== Check thread is attached when creating a Persistent BUG=591606 Committed: https://crrev.com/33f9e3a0fb535159cbd009663b9f194fc27f4205 Cr-Commit-Position: refs/heads/master@{#413125} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/33f9e3a0fb535159cbd009663b9f194fc27f4205 Cr-Commit-Position: refs/heads/master@{#413125} |
