|
|
Created:
4 years, 3 months ago by yhirano Modified:
4 years, 3 months ago Reviewers:
haraken CC:
chromium-reviews, blink-reviews, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionStop ResourceCallback from being an on-heap class
The first ResourceCallback::callbackHandler() call instantiates the
ResourceCallback singleton. As we call it in the pre-finalization
step, it should not be an on-heap class.
BUG=587663
Committed: https://crrev.com/9dcf57878d47393d7b3bfd5aa501b5dc4cf0c445
Cr-Commit-Position: refs/heads/master@{#414989}
Patch Set 1 #Patch Set 2 : fix #Patch Set 3 : fix #Patch Set 4 : fix #
Total comments: 3
Patch Set 5 : fix #Messages
Total messages: 41 (27 generated)
The CQ bit was checked by yhirano@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...
Description was changed from ========== Avoid instantiating the static ResourceCallback in the pre-finalization step. The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As it is an on-heap object, we are not allowed to instantiate it in the pre-finalization step. This CL calls the function in Resource constructor to avoid that. BUG=587663 ========== to ========== Avoid instantiating the ResourceCallback singleton in the pre-finalization step The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As it is an on-heap object, we are not allowed to instantiate it in the pre-finalization step. This CL calls the function in Resource constructor to avoid that. BUG=587663 ==========
yhirano@chromium.org changed reviewers: + haraken@chromium.org
The CQ bit was checked by yhirano@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...
The CQ bit was checked by yhirano@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...
Description was changed from ========== Avoid instantiating the ResourceCallback singleton in the pre-finalization step The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As it is an on-heap object, we are not allowed to instantiate it in the pre-finalization step. This CL calls the function in Resource constructor to avoid that. BUG=587663 ========== to ========== Stop ResourceCallback from being an on-heap class. The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As we call it in the pre-finalization step, it should not be an on-heap class. BUG=587663 ==========
Description was changed from ========== Stop ResourceCallback from being an on-heap class. The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As we call it in the pre-finalization step, it should not be an on-heap class. BUG=587663 ========== to ========== Stop ResourceCallback from being an on-heap class The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As we call it in the pre-finalization step, it should not be an on-heap class. BUG=587663 ==========
The CQ bit was checked by yhirano@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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
LGTM
https://codereview.chromium.org/2287483003/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2287483003/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/Resource.cpp:248: // Oilpan + LSan: as the callbackHandler() singleton is used by Resource haraken@: Sorry I forgot to ask, I don't know if we should keep this comment and LEAK_SANITIZER_DISABLED_SCOPE. Can you tell me?
https://codereview.chromium.org/2287483003/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2287483003/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/Resource.cpp:248: // Oilpan + LSan: as the callbackHandler() singleton is used by Resource On 2016/08/29 04:34:11, yhirano wrote: > haraken@: Sorry I forgot to ask, I don't know if we should keep this comment and > LEAK_SANITIZER_DISABLED_SCOPE. Can you tell me? This is a oilpan & DISABLE_STATIC_LOCAL specific thing. So you can just remove the comment and the scope.
The CQ bit was checked by yhirano@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/2287483003/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2287483003/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/Resource.cpp:248: // Oilpan + LSan: as the callbackHandler() singleton is used by Resource On 2016/08/29 04:37:02, haraken wrote: > On 2016/08/29 04:34:11, yhirano wrote: > > haraken@: Sorry I forgot to ask, I don't know if we should keep this comment > and > > LEAK_SANITIZER_DISABLED_SCOPE. Can you tell me? > > This is a oilpan & DISABLE_STATIC_LOCAL specific thing. So you can just remove > the comment and the scope. Thanks!
The CQ bit was unchecked by yhirano@chromium.org
The CQ bit was checked by yhirano@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from haraken@chromium.org Link to the patchset: https://codereview.chromium.org/2287483003/#ps80001 (title: "fix")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by yhirano@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Exceeded global retry quota
The CQ bit was checked by yhirano@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by yhirano@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 ========== Stop ResourceCallback from being an on-heap class The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As we call it in the pre-finalization step, it should not be an on-heap class. BUG=587663 ========== to ========== Stop ResourceCallback from being an on-heap class The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As we call it in the pre-finalization step, it should not be an on-heap class. BUG=587663 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Stop ResourceCallback from being an on-heap class The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As we call it in the pre-finalization step, it should not be an on-heap class. BUG=587663 ========== to ========== Stop ResourceCallback from being an on-heap class The first ResourceCallback::callbackHandler() call instantiates the ResourceCallback singleton. As we call it in the pre-finalization step, it should not be an on-heap class. BUG=587663 Committed: https://crrev.com/9dcf57878d47393d7b3bfd5aa501b5dc4cf0c445 Cr-Commit-Position: refs/heads/master@{#414989} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/9dcf57878d47393d7b3bfd5aa501b5dc4cf0c445 Cr-Commit-Position: refs/heads/master@{#414989} |