Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(312)

Issue 123350045: Move MemoryNotifierAllocator to its own file, and create HeapAllocator. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by chrisha
Modified:
11 years, 4 months ago
CC:
sawbuck-changes_googlegroups.com
Base URL:
http://sawbuck.googlecode.com/svn/trunk
Visibility:
Public.

Description

Move MemoryNotifierAllocator to its own file, and create HeapAllocator. Turns out that MemoryNotifierAllocator isn't going to cut it for us, because the STL heap does alignments mod 4, and the shadow memory barfs. The new approach will be to use a HeapAllocator combined with an instance of a reporting heap (either a WinHeap or a CtMallocHeap), and have internal STL structures use *that*. BUG= R=sebmarchand@chromium.org Committed: https://code.google.com/p/sawbuck/source/detail?r=2263

Patch Set 1 #

Patch Set 2 : Add missing files. #

Total comments: 3

Patch Set 3 : Move mock classes to unittest_util. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -298 lines) Patch
A syzygy/agent/asan/allocators.h View 1 1 chunk +142 lines, -0 lines 0 comments Download
A syzygy/agent/asan/allocators_impl.h View 1 1 chunk +132 lines, -0 lines 0 comments Download
A + syzygy/agent/asan/allocators_unittest.cc View 1 2 4 chunks +70 lines, -4 lines 0 comments Download
M syzygy/agent/asan/asan.gyp View 4 chunks +3 lines, -2 lines 0 comments Download
M syzygy/agent/asan/circular_queue_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M syzygy/agent/asan/heaps/large_block_heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M syzygy/agent/asan/heaps/zebra_block_heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M syzygy/agent/asan/memory_notifier.h View 1 chunk +0 lines, -56 lines 0 comments Download
D syzygy/agent/asan/memory_notifier_impl.h View 1 chunk +0 lines, -88 lines 0 comments Download
D syzygy/agent/asan/memory_notifier_unittest.cc View 1 chunk +0 lines, -148 lines 0 comments Download
M syzygy/agent/asan/memory_notifiers/shadow_memory_notifier.h View 1 chunk +1 line, -0 lines 0 comments Download
M syzygy/agent/asan/unittest_util.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 6
chrisha
PTAL?
11 years, 4 months ago (2014-08-19 17:23:26 UTC) #1
Sébastien Marchand
https://codereview.appspot.com/123350045/diff/20001/syzygy/agent/asan/allocators_unittest.cc File syzygy/agent/asan/allocators_unittest.cc (right): https://codereview.appspot.com/123350045/diff/20001/syzygy/agent/asan/allocators_unittest.cc#newcode160 syzygy/agent/asan/allocators_unittest.cc:160: typedef testing::StrictMock<LenientMockHeap> MockHeap; Hum, it looks like the same ...
11 years, 4 months ago (2014-08-19 18:20:27 UTC) #2
chrisha
https://codereview.appspot.com/123350045/diff/20001/syzygy/agent/asan/allocators_unittest.cc File syzygy/agent/asan/allocators_unittest.cc (right): https://codereview.appspot.com/123350045/diff/20001/syzygy/agent/asan/allocators_unittest.cc#newcode160 syzygy/agent/asan/allocators_unittest.cc:160: typedef testing::StrictMock<LenientMockHeap> MockHeap; On 2014/08/19 18:20:26, Sébastien Marchand wrote: ...
11 years, 4 months ago (2014-08-19 18:26:41 UTC) #3
Sébastien Marchand
lgtm. https://codereview.appspot.com/123350045/diff/20001/syzygy/agent/asan/allocators_unittest.cc File syzygy/agent/asan/allocators_unittest.cc (right): https://codereview.appspot.com/123350045/diff/20001/syzygy/agent/asan/allocators_unittest.cc#newcode160 syzygy/agent/asan/allocators_unittest.cc:160: typedef testing::StrictMock<LenientMockHeap> MockHeap; On 2014/08/19 18:26:41, chrisha wrote: ...
11 years, 4 months ago (2014-08-19 18:35:10 UTC) #4
chrisha
Thanks, committing!
11 years, 4 months ago (2014-08-19 18:42:01 UTC) #5
chrisha
11 years, 4 months ago (2014-08-19 18:43:00 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as 2263 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b