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

Issue 23888003: Free memory when the last WebView instance is destroyed. (Closed)

Created:
7 years, 3 months ago by Primiano Tucci (use gerrit)
Modified:
7 years, 3 months ago
Reviewers:
joth, benm (inactive)
CC:
chromium-reviews, android-webview-reviews_chromium.org, bulach
Visibility:
Public.

Description

Free memory when the last WebView instance is destroyed. Sending a (TRIM_MEMORY_COMPLETE) memory pressure signal to free some memory (v8,sqlite,image decoding caches) when the last WebView instance is destroyed. BUG=284362 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221669

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Switching to native implementation (joth) #

Patch Set 3 : Adding comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M android_webview/native/aw_contents.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Primiano Tucci (use gerrit)
7 years, 3 months ago (2013-09-03 10:31:18 UTC) #1
joth
https://codereview.chromium.org/23888003/diff/7001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/23888003/diff/7001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode204 android_webview/java/src/org/chromium/android_webview/AwContents.java:204: ComponentCallbacks2.TRIM_MEMORY_COMPLETE); It's always a bit hairy adding new code ...
7 years, 3 months ago (2013-09-03 18:37:58 UTC) #2
Primiano Tucci (use gerrit)
https://codereview.chromium.org/23888003/diff/7001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/23888003/diff/7001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode204 android_webview/java/src/org/chromium/android_webview/AwContents.java:204: ComponentCallbacks2.TRIM_MEMORY_COMPLETE); On 2013/09/03 18:37:58, joth wrote: > It's always ...
7 years, 3 months ago (2013-09-05 11:47:25 UTC) #3
joth
lgtm
7 years, 3 months ago (2013-09-05 16:27:33 UTC) #4
joth
maybe add a comment "When the final WebView is destroyed free all discardable chromium allocated ...
7 years, 3 months ago (2013-09-05 16:29:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/23888003/20001
7 years, 3 months ago (2013-09-06 09:56:31 UTC) #6
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 10:12:44 UTC) #7
Message was sent while issue was closed.
Change committed as 221669

Powered by Google App Engine
This is Rietveld 408576698