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

Issue 11648040: Number of small improvements to CleanupReference (Closed)

Created:
8 years ago by joth
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Number of small improvements to CleanupReference - sRef is now only accessed on main thread, so CleanupReference should now be threadsafe - synchronously flushes sQueue when references added or removed on main thread, to avoid falling behind when heap is churning rapidly (i.e. finalizers never getting to run scenario). - ensure the referene gets removed from sRefs after a GC as otherwise it might have remained on there indefinitely. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174931

Patch Set 1 #

Total comments: 4

Patch Set 2 : dtrainor comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -12 lines) Patch
M content/public/android/java/src/org/chromium/content/common/CleanupReference.java View 1 6 chunks +42 lines, -12 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
joth
8 years ago (2012-12-22 03:49:33 UTC) #1
David Trainor- moved to gerrit
lgtm with one nit/suggestion https://codereview.chromium.org/11648040/diff/1/content/public/android/java/src/org/chromium/content/common/CleanupReference.java File content/public/android/java/src/org/chromium/content/common/CleanupReference.java (right): https://codereview.chromium.org/11648040/diff/1/content/public/android/java/src/org/chromium/content/common/CleanupReference.java#newcode54 content/public/android/java/src/org/chromium/content/common/CleanupReference.java:54: // Remove new reference to ...
7 years, 11 months ago (2013-01-02 18:54:00 UTC) #2
joth
+ted for OWNER review. Thanks! https://codereview.chromium.org/11648040/diff/1/content/public/android/java/src/org/chromium/content/common/CleanupReference.java File content/public/android/java/src/org/chromium/content/common/CleanupReference.java (right): https://codereview.chromium.org/11648040/diff/1/content/public/android/java/src/org/chromium/content/common/CleanupReference.java#newcode54 content/public/android/java/src/org/chromium/content/common/CleanupReference.java:54: // Remove new reference ...
7 years, 11 months ago (2013-01-03 00:30:49 UTC) #3
Ted C
lgtm
7 years, 11 months ago (2013-01-03 01:22:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/11648040/6001
7 years, 11 months ago (2013-01-03 01:47:41 UTC) #5
commit-bot: I haz the power
7 years, 11 months ago (2013-01-03 03:40:53 UTC) #6
Message was sent while issue was closed.
Change committed as 174931

Powered by Google App Engine
This is Rietveld 408576698