This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly hold onto objects that are required for migration
The TabContentManager was being garbage collected before migration finished, resulting in native background threads attempting to execute JNI on the dead TabContentManager. More explicitly hold the TabContentManager inside of the FaviconImageCallback (even though it was already doing so) as a member field instead, which seems to prevent the GC from nuking it. Possible reasoning on why the GC was being irrationally exuberant: http://stackoverflow.com/questions/26642153/finalize-called-on-strongly-reachable-object-in-java-8 BUG=513130 Review URL: https://codereview.chromium.org/1260043007 Cr-Commit-Position: refs/heads/master@{#341971} TBR=dtrainor Review URL: https://codereview.chromium.org/1277593003 . Cr-Commit-Position: refs/branch-heads/2454@{#240} Cr-Branched-From: 12bfc33-refs/heads/master@{#338390}
- Loading branch information
1 parent
b9e66b1
commit 1b83485
Showing
1 changed file
with
42 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters