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

Issue 6716006: Identifying call sites that need to handle out of memory situations in Courgette. (Closed)

Created:
9 years, 9 months ago by tommi (sloooow) - chröme
Modified:
9 years, 7 months ago
Reviewers:
amit, robertshield
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Identifying call sites that need to handle out of memory situations in Courgette. There's no functional change here, only interface changes: * Change methods that are known to fail out in the field to return bool instead of void. * Where those methods are called, check the return value and report errors * In debug builds use a specialized template class that forces callers to check return values (this is possible at compile time in gcc, but unfortunately not in VS). The next step will be to change the implementation to not use STL containers. TEST=Run courgette tests. BUG=74777 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79030

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -169 lines) Patch
M courgette/assembly_program.cc View 4 chunks +31 lines, -16 lines 0 comments Download
M courgette/encoded_program.h View 2 chunks +12 lines, -12 lines 0 comments Download
M courgette/encoded_program.cc View 1 19 chunks +108 lines, -57 lines 0 comments Download
M courgette/encoded_program_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M courgette/ensemble_apply.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M courgette/memory_allocator.h View 1 chunk +41 lines, -0 lines 0 comments Download
M courgette/streams.h View 6 chunks +19 lines, -12 lines 0 comments Download
M courgette/streams.cc View 3 chunks +43 lines, -31 lines 0 comments Download
M courgette/streams_unittest.cc View 6 chunks +15 lines, -15 lines 0 comments Download
M courgette/third_party/bsdiff_apply.cc View 3 chunks +7 lines, -3 lines 0 comments Download
M courgette/third_party/bsdiff_create.cc View 5 chunks +26 lines, -15 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
tommi (sloooow) - chröme
FYI - The TODOs in there are reminders for my next changelist.
9 years, 9 months ago (2011-03-22 17:00:10 UTC) #1
amit
http://codereview.chromium.org/6716006/diff/1/courgette/assembly_program.cc File courgette/assembly_program.cc (right): http://codereview.chromium.org/6716006/diff/1/courgette/assembly_program.cc#newcode313 courgette/assembly_program.cc:313: if (!DefineLabels(abs32_labels_, encoded.get(), nice! could this be the cause ...
9 years, 9 months ago (2011-03-22 17:43:36 UTC) #2
robertshield
http://codereview.chromium.org/6716006/diff/1/courgette/encoded_program.cc File courgette/encoded_program.cc (right): http://codereview.chromium.org/6716006/diff/1/courgette/encoded_program.cc#newcode111 courgette/encoded_program.cc:111: // TODO(tommi) Are you going to fix these right ...
9 years, 9 months ago (2011-03-22 18:04:07 UTC) #3
tommi (sloooow) - chröme
http://codereview.chromium.org/6716006/diff/1/courgette/assembly_program.cc File courgette/assembly_program.cc (right): http://codereview.chromium.org/6716006/diff/1/courgette/assembly_program.cc#newcode313 courgette/assembly_program.cc:313: if (!DefineLabels(abs32_labels_, encoded.get(), On 2011/03/22 17:43:36, amit wrote: > ...
9 years, 9 months ago (2011-03-22 18:37:49 UTC) #4
robertshield
9 years, 9 months ago (2011-03-22 18:39:05 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698