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

Issue 7467037: Made Destroy() followup more aggressive to test for races. (Closed)

Created:
9 years, 5 months ago by Ami GONE FROM CHROMIUM
Modified:
9 years, 4 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), vhiremath, vjain, cfreeman
Visibility:
Public.

Description

Made Destroy() followup more aggressive to test for races. In particular we now free output textures and input bitstream buffers as soon as Destroy() returns, in an attempt to trip up race conditions between OVDA::Destroy() returning and the openmax libs/drivers/hardware attempting to use no-longer-valid memory. Also made DestroyVideoDecoder a SYNChronous IPC message again to match VideoDecodeAccelerator::Destroy()'s contract. Also explicitly set to NULL pointers that are made invalid or no-longer useful by Destroy(), in the pepper glue code, to make crashes more obvious if they happen. [No crashes have been observed in gles2 or ovdatest; this CL is just to increase (currently manual) test coverage] BUG=none TEST=gles2 mid-decode reload works, ovdatest passes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94148

Patch Set 1 : . #

Patch Set 2 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -13 lines) Patch
M content/common/gpu/gpu_messages.h View 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/omx_video_decode_accelerator_unittest.cc View 1 10 chunks +22 lines, -11 lines 2 comments Download
M content/renderer/pepper_platform_video_decoder_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/examples/gles2/gles2.cc View 5 chunks +22 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Ami GONE FROM CHROMIUM
brettw: OWNERS please vrk: please review
9 years, 5 months ago (2011-07-25 23:04:04 UTC) #1
brettw
LGTM rubberstamp
9 years, 5 months ago (2011-07-26 16:17:01 UTC) #2
vrk (LEFT CHROMIUM)
LGTM http://codereview.chromium.org/7467037/diff/5001/content/common/gpu/media/omx_video_decode_accelerator_unittest.cc File content/common/gpu/media/omx_video_decode_accelerator_unittest.cc (right): http://codereview.chromium.org/7467037/diff/5001/content/common/gpu/media/omx_video_decode_accelerator_unittest.cc#newcode567 content/common/gpu/media/omx_video_decode_accelerator_unittest.cc:567: DCHECK(inserted); nit: change DCHECK to CHECK here and ...
9 years, 5 months ago (2011-07-26 17:33:19 UTC) #3
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/7467037/diff/5001/content/common/gpu/media/omx_video_decode_accelerator_unittest.cc File content/common/gpu/media/omx_video_decode_accelerator_unittest.cc (right): http://codereview.chromium.org/7467037/diff/5001/content/common/gpu/media/omx_video_decode_accelerator_unittest.cc#newcode567 content/common/gpu/media/omx_video_decode_accelerator_unittest.cc:567: DCHECK(inserted); On 2011/07/26 17:33:20, Victoria Kirst wrote: > nit: ...
9 years, 5 months ago (2011-07-26 18:05:09 UTC) #4
commit-bot: I haz the power
Try job failure for 7467037-5001 (retry) on linux_clang for step "compile" (clobber build). It's a ...
9 years, 5 months ago (2011-07-26 19:31:04 UTC) #5
commit-bot: I haz the power
9 years, 4 months ago (2011-07-28 16:30:51 UTC) #6
Can't apply patch for file webkit/plugins/ppapi/ppb_video_decoder_impl.cc.
While running patch -p1 --forward --force;
patching file webkit/plugins/ppapi/ppb_video_decoder_impl.cc
Hunk #1 FAILED at 176.
1 out of 1 hunk FAILED -- saving rejects to file
webkit/plugins/ppapi/ppb_video_decoder_impl.cc.rej

Powered by Google App Engine
This is Rietveld 408576698