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

Issue 1914433002: Assert that AwGLFunctor instances do not leak. (Closed)

Created:
4 years, 8 months ago by Tobias Sargeant
Modified:
4 years, 8 months ago
Reviewers:
boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Assert that AwGLFunctor instances do not leak. We should ensure that AwGLFunctor references are cleaned up correctly. In general there could be more native AwGLFunctor instances than AwContents instance (when in fullscreen mode) but in non-fullscreen tests it is safe to require that the number of AwGLFunctor instances is eventually less than or equal to the number of AwContents instances. AwGLFunctor instances may temporarily outlive AwContents while the native DrawGL functor remains needed by the render thread, but this should not be the case indefinitely. BUG=597167 Committed: https://crrev.com/453c3b298d6dc0197d674a29ed59c67a716fe1f1 Cr-Commit-Position: refs/heads/master@{#389438}

Patch Set 1 #

Total comments: 2

Patch Set 2 : change test to assert that there is exactly one functor per live awcontents at steady state #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -5 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java View 3 chunks +12 lines, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M android_webview/native/aw_gl_functor.cc View 1 2 3 3 chunks +23 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Tobias Sargeant
4 years, 8 months ago (2016-04-22 10:19:39 UTC) #2
boliu
did you repeat the gc tests like at least 50 times locally to make sure ...
4 years, 8 months ago (2016-04-22 15:51:53 UTC) #3
Tobias Sargeant
how's this?
4 years, 8 months ago (2016-04-22 16:43:28 UTC) #4
boliu
https://codereview.chromium.org/1914433002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java (right): https://codereview.chromium.org/1914433002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java#newcode244 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java:244: && count_aw_functor == count_aw_contents; yeah you are right, == ...
4 years, 8 months ago (2016-04-22 16:48:08 UTC) #5
Tobias Sargeant
https://codereview.chromium.org/1914433002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java (right): https://codereview.chromium.org/1914433002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java#newcode244 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java:244: && count_aw_functor == count_aw_contents; On 2016/04/22 16:48:08, boliu wrote: ...
4 years, 8 months ago (2016-04-22 17:01:33 UTC) #6
boliu
lgtm % make sure test is not flaky
4 years, 8 months ago (2016-04-22 17:03:18 UTC) #7
Tobias Sargeant
On 2016/04/22 17:03:18, boliu wrote: > lgtm % make sure test is not flaky 50 ...
4 years, 8 months ago (2016-04-25 08:31:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914433002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914433002/40001
4 years, 8 months ago (2016-04-25 08:31:35 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_gn/builds/24352) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-25 08:33:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914433002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914433002/60001
4 years, 8 months ago (2016-04-25 09:20:25 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-25 10:20:08 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 10:21:48 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/453c3b298d6dc0197d674a29ed59c67a716fe1f1
Cr-Commit-Position: refs/heads/master@{#389438}

Powered by Google App Engine
This is Rietveld 408576698