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

Issue 9403039: PPAPI: Really force-free NPObjects on Instance destruction. (Closed)

Created:
8 years, 10 months ago by dmichael (off chromium)
Modified:
8 years, 9 months ago
Reviewers:
brettw, viettrungluu, piman
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

PPAPI: Really force-free NPObjects on Instance destruction. (There still seems to be a memory leak with this patch; I may have to check our NPObject reference counting next.) BUG=114023 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124106

Patch Set 1 : pre-review cleanup #

Total comments: 3

Patch Set 2 : handle object graphs better #

Patch Set 3 : Fix instance object reference leak, add testing. #

Total comments: 1

Patch Set 4 : Fix for review comment, merge #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -56 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 2 chunks +50 lines, -7 lines 0 comments Download
M ppapi/tests/test_case.h View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M ppapi/tests/test_case.cc View 1 2 3 4 3 chunks +23 lines, -18 lines 0 comments Download
M ppapi/tests/test_case.html View 1 2 5 chunks +52 lines, -1 line 0 comments Download
M ppapi/tests/test_instance_deprecated.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/tests/test_instance_deprecated.cc View 1 2 5 chunks +99 lines, -1 line 0 comments Download
M ppapi/tests/testing_instance.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M ppapi/tests/testing_instance.cc View 1 2 5 chunks +23 lines, -13 lines 0 comments Download
M webkit/plugins/ppapi/host_var_tracker.h View 1 2 chunks +7 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/host_var_tracker.cc View 1 3 chunks +25 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/message_channel.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/npobject_var.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_webplugin_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_webplugin_impl.cc View 1 2 3 4 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dmichael (off chromium)
8 years, 10 months ago (2012-02-16 05:33:30 UTC) #1
brettw
This seems plausible. It would take me an hour to get how this works back ...
8 years, 10 months ago (2012-02-16 23:40:45 UTC) #2
dmichael (off chromium)
On my ride home last night I realized my "fix" wasn't quite right. (+viettrungluu for ...
8 years, 10 months ago (2012-02-17 22:45:09 UTC) #3
brettw
On Fri, Feb 17, 2012 at 2:45 PM, <dmichael@chromium.org> wrote: > On my ride home ...
8 years, 10 months ago (2012-02-17 23:08:23 UTC) #4
viettrungluu
+piman, who knows the subtleties of Flash and scripting better than me
8 years, 10 months ago (2012-02-17 23:31:29 UTC) #5
dmichael (off chromium)
Okay, should be ready for review now. This patch: - Decrements the reference count of ...
8 years, 10 months ago (2012-02-24 20:29:50 UTC) #6
brettw
lgtm http://codereview.chromium.org/9403039/diff/14001/webkit/plugins/ppapi/ppapi_webplugin_impl.cc File webkit/plugins/ppapi/ppapi_webplugin_impl.cc (right): http://codereview.chromium.org/9403039/diff/14001/webkit/plugins/ppapi/ppapi_webplugin_impl.cc#newcode96 webkit/plugins/ppapi/ppapi_webplugin_impl.cc:96: ::ppapi::PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(instance_object_); Can you also clear the instance_object_ var ...
8 years, 10 months ago (2012-02-28 00:18:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/9403039/24001
8 years, 9 months ago (2012-02-28 21:19:02 UTC) #8
commit-bot: I haz the power
Try job failure for 9403039-24001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-02-28 22:09:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/9403039/25007
8 years, 9 months ago (2012-02-28 22:23:23 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-02-29 03:48:26 UTC) #11
Change committed as 124106

Powered by Google App Engine
This is Rietveld 408576698