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

Issue 208743011: Oilpan: Change persistent handles in the Event hierarchy to members (Closed)

Created:
6 years, 9 months ago by haraken
Modified:
6 years, 9 months ago
CC:
blink-reviews
Visibility:
Public.

Description

Oilpan: Change persistent handles in the Event hierarchy to members Persistent handles in on-heap objects are not allowed (because it's likely to cause memory leaks). This CL removes them from the Event hierarchy, which was moved to oilpan's heap in r169941. BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170022

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M Source/core/events/MessageEvent.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/MessageEvent.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/PopStateEvent.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/PopStateEvent.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/TouchEvent.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/events/TouchEvent.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/storage/StorageEvent.h View 2 chunks +2 lines, -1 line 1 comment Download
M Source/core/storage/StorageEvent.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/modules/gamepad/GamepadEvent.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/gamepad/GamepadEvent.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
haraken
PTAL. Ian: I noticed that I forgot to change some Members in the Event hierarchy ...
6 years, 9 months ago (2014-03-26 04:48:50 UTC) #1
kouhei (in TOK)
lgtm
6 years, 9 months ago (2014-03-26 04:50:27 UTC) #2
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 9 months ago (2014-03-26 04:57:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/208743011/1
6 years, 9 months ago (2014-03-26 04:58:06 UTC) #4
commit-bot: I haz the power
Change committed as 170022
6 years, 9 months ago (2014-03-26 06:02:14 UTC) #5
Mads Ager (chromium)
LGTM https://codereview.chromium.org/208743011/diff/1/Source/core/storage/StorageEvent.h File Source/core/storage/StorageEvent.h (right): https://codereview.chromium.org/208743011/diff/1/Source/core/storage/StorageEvent.h#newcode1 Source/core/storage/StorageEvent.h:1: Accidental edit?
6 years, 9 months ago (2014-03-26 06:36:03 UTC) #6
haraken
On 2014/03/26 06:36:03, Mads Ager (chromium) wrote: > LGTM > > https://codereview.chromium.org/208743011/diff/1/Source/core/storage/StorageEvent.h > File Source/core/storage/StorageEvent.h ...
6 years, 9 months ago (2014-03-26 06:42:05 UTC) #7
zerny-chromium
On 2014/03/26 04:48:50, haraken wrote: > PTAL. > > Ian: I noticed that I forgot ...
6 years, 9 months ago (2014-03-26 09:37:32 UTC) #8
haraken
6 years, 9 months ago (2014-03-26 09:45:10 UTC) #9
Message was sent while issue was closed.
On 2014/03/26 09:37:32, zerny-chromium wrote:
> On 2014/03/26 04:48:50, haraken wrote:
> > PTAL.
> > 
> > Ian: I noticed that I forgot to change some Members in the Event hierarchy
> back
> > to Persistents when I reverted Event back to RefCounted. (e.g.,
> > DeviceMotionEvent.h already has Members.) This means that we've had Members
in
> > off-heap objects. It would be great if the plugin catch this kind of error
> (=we
> > never have Members in off-heap objects).
> 
> Thanks for reporting this issue! In what CL did you replace them by
> Persistent(s) again, or was the oilpan build "broken" up until you moved Event
> back on the managed heap?
> 
> Regarding reporting such errors, we need to allow members in classes that are
> stack and part allocated. I'll look at strengthening our checks so that we
take
> the DISALLOW_ALLOCATION macro into account when validating the occurrence of a
> Member in a class.

(1) I moved Event to RefCountedGarbageCollected three weeks ago
(https://codereview.chromium.org/181153003/). Then I made Persistents in the
Event hierarchy to Members.
(2) Because it broke a lot of tests, I reverted the RefCountedGarbageCollected
to RefCounted (https://codereview.chromium.org/185463005/). However, I forgot to
revert Members to Persistents.
(3) Today I noticed the issue.

Between (2) and (3), Event was off the heap but some Events had Members in them.

Powered by Google App Engine
This is Rietveld 408576698