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

Issue 674153002: minidump: Change the ownership model (Closed)

Created:
6 years, 2 months ago by Mark Mentovai
Modified:
6 years, 1 month ago
Reviewers:
Robert Sesek
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Project:
crashpad
Visibility:
Public.

Description

minidump: Change the ownership model. All minidump objects now own their all of their children, rather than having them maintain weak pointers and requiring callers to maintain ownership. The only weak object in the entire tree now is the “extra memory” added to a MinidumpMemoryListWriter by its AddExtraMemory() method. Extra memory aliases objects owned elsewhere in the tree, typically by a MinidumpThreadWriter as stack memory. Non-“extra” memory added to a MinidumpMemoryListWriter by its AddMemory() method is strongly owned. Many objects are now deleted through base pointers, and in those cases, the base classes now have public virtual destructors. The ultimate base, MinidumpWritable, is still protected to guard against direct instantiation and deletion, and thus its destructor does not need to be virtual. This updates mini_chromium to eeb3b6a4f020 specifically for that revision, which includes necessary updates to scoped_ptr. It also picks up: eeb3b6a4f020 Update base/move.h and base/memory/scoped_ptr.h to match 67ad2efafaba More porting to Windows be27a006421e AUTHORS: Fix link post-git migration flag day. 05f5b1503230 Add codereview.settings to mini_chromium. a32c2b199811 Beginnings of Windows support in mini_chromium TEST=minidump_test R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/0a4ea0b52dc98083bef0f8521e347172214e6846

Patch Set 1 #

Patch Set 2 : Rebase onto https://codereview.chromium.org/675803002/ #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : Address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+617 lines, -509 lines) Patch
M DEPS View 1 chunk +1 line, -1 line 0 comments Download
M minidump/minidump_context_writer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M minidump/minidump_crashpad_info_writer.h View 1 3 chunks +7 lines, -5 lines 0 comments Download
M minidump/minidump_crashpad_info_writer.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M minidump/minidump_crashpad_info_writer_test.cc View 1 2 3 2 chunks +10 lines, -9 lines 0 comments Download
M minidump/minidump_exception_writer.h View 3 chunks +6 lines, -5 lines 0 comments Download
M minidump/minidump_exception_writer.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M minidump/minidump_exception_writer_test.cc View 4 chunks +19 lines, -19 lines 0 comments Download
M minidump/minidump_file_writer.h View 1 2 3 4 4 chunks +10 lines, -5 lines 0 comments Download
M minidump/minidump_file_writer.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M minidump/minidump_file_writer_test.cc View 6 chunks +21 lines, -15 lines 0 comments Download
M minidump/minidump_memory_writer.h View 1 2 3 4 5 chunks +9 lines, -6 lines 0 comments Download
M minidump/minidump_memory_writer.cc View 3 chunks +13 lines, -4 lines 0 comments Download
M minidump/minidump_memory_writer_test.cc View 6 chunks +28 lines, -21 lines 0 comments Download
M minidump/minidump_misc_info_writer.h View 1 chunk +1 line, -1 line 0 comments Download
M minidump/minidump_misc_info_writer.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M minidump/minidump_misc_info_writer_test.cc View 17 chunks +73 lines, -72 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer.h View 1 2 3 4 6 chunks +12 lines, -10 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer_test.cc View 1 2 3 3 chunks +52 lines, -42 lines 0 comments Download
M minidump/minidump_module_writer.h View 1 2 3 4 8 chunks +18 lines, -16 lines 0 comments Download
M minidump/minidump_module_writer.cc View 1 2 3 4 4 chunks +12 lines, -8 lines 0 comments Download
M minidump/minidump_module_writer_test.cc View 9 chunks +86 lines, -80 lines 0 comments Download
M minidump/minidump_simple_string_dictionary_writer.h View 1 2 3 4 4 chunks +9 lines, -7 lines 0 comments Download
M minidump/minidump_simple_string_dictionary_writer.cc View 2 chunks +11 lines, -2 lines 0 comments Download
M minidump/minidump_simple_string_dictionary_writer_test.cc View 4 chunks +27 lines, -20 lines 0 comments Download
M minidump/minidump_stream_writer.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M minidump/minidump_stream_writer.cc View 2 chunks +9 lines, -6 lines 0 comments Download
M minidump/minidump_string_writer.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M minidump/minidump_string_writer.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M minidump/minidump_system_info_writer.h View 1 chunk +1 line, -1 line 0 comments Download
M minidump/minidump_system_info_writer_test.cc View 7 chunks +33 lines, -33 lines 0 comments Download
M minidump/minidump_thread_writer.h View 1 2 3 4 8 chunks +18 lines, -16 lines 0 comments Download
M minidump/minidump_thread_writer.cc View 1 2 3 4 3 chunks +14 lines, -9 lines 0 comments Download
M minidump/minidump_thread_writer_test.cc View 10 chunks +77 lines, -77 lines 0 comments Download
M minidump/minidump_writable.h View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Mark Mentovai
6 years, 2 months ago (2014-10-24 17:07:54 UTC) #2
Robert Sesek
The styleguide explicitly says "If your class has virtual methods, its destructor should be virtual.", ...
6 years, 1 month ago (2014-10-27 17:18:00 UTC) #3
Mark Mentovai
That bit of the style guide is a relic from when -Wnon-virtual-dtor was the best ...
6 years, 1 month ago (2014-10-27 18:48:45 UTC) #5
Robert Sesek
LGTM On 2014/10/27 18:48:45, Mark Mentovai wrote: > That bit of the style guide is ...
6 years, 1 month ago (2014-10-27 18:59:52 UTC) #6
Mark Mentovai
6 years, 1 month ago (2014-10-27 19:01:48 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as
0a4ea0b52dc98083bef0f8521e347172214e6846 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698