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

Issue 955573002: Oilpan: fix build after r190700 (99fb464b7). (Closed)

Created:
5 years, 10 months ago by sof
Modified:
5 years, 10 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: fix build after r190700 (99fb464b7). The container's is already kept alive by a stack reference with Oilpan. R=haraken BUG=458776 NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190718

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M Source/web/WebPluginContainerImpl.cpp View 1 chunk +6 lines, -1 line 3 comments Download

Messages

Total messages: 12 (3 generated)
sof
Please take a look. I cannot access the upstream bug, but the lifetime issue here ...
5 years, 10 months ago (2015-02-24 06:41:12 UTC) #2
haraken
LGTM
5 years, 10 months ago (2015-02-24 06:57:30 UTC) #3
haraken
I can't access the bug either...
5 years, 10 months ago (2015-02-24 06:57:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/955573002/1
5 years, 10 months ago (2015-02-24 07:03:15 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=190718
5 years, 10 months ago (2015-02-24 07:04:33 UTC) #7
sof
On 2015/02/24 06:57:50, haraken wrote: > I can't access the bug either... If the helper ...
5 years, 10 months ago (2015-02-24 07:14:39 UTC) #8
raymes
https://codereview.chromium.org/955573002/diff/1/Source/web/WebPluginContainerImpl.cpp File Source/web/WebPluginContainerImpl.cpp (right): https://codereview.chromium.org/955573002/diff/1/Source/web/WebPluginContainerImpl.cpp#newcode609 Source/web/WebPluginContainerImpl.cpp:609: if (!m_webPlugin) Hmm I don't really understand what the ...
5 years, 10 months ago (2015-02-24 23:55:26 UTC) #10
raymes
https://codereview.chromium.org/955573002/diff/1/Source/web/WebPluginContainerImpl.cpp File Source/web/WebPluginContainerImpl.cpp (right): https://codereview.chromium.org/955573002/diff/1/Source/web/WebPluginContainerImpl.cpp#newcode609 Source/web/WebPluginContainerImpl.cpp:609: if (!m_webPlugin) Actually I think this seems reasonable as ...
5 years, 10 months ago (2015-02-24 23:59:29 UTC) #11
sof
5 years, 10 months ago (2015-02-25 07:04:50 UTC) #12
Message was sent while issue was closed.
Thanks for doublechecking & going over the details.

https://codereview.chromium.org/955573002/diff/1/Source/web/WebPluginContaine...
File Source/web/WebPluginContainerImpl.cpp (right):

https://codereview.chromium.org/955573002/diff/1/Source/web/WebPluginContaine...
Source/web/WebPluginContainerImpl.cpp:609: if (!m_webPlugin)
On 2015/02/24 23:59:29, raymes wrote:
> Actually I think this seems reasonable as it looks like in the case of oilpan
> it's possible the plugin may have been destroyed in the re-entrant call.
> 
> Thanks!

If it ends up being disposed of, m_webPlugin will be cleared.

This container object itself cannot be destructed as it is on the Oilpan heap,
so if a garbage collection should strike across that troublesome call, the
object will be kept alive as the stack refers to it.

Powered by Google App Engine
This is Rietveld 408576698