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

Issue 23093022: Fix crashes of some CPU profiler tests on Windows after r16284 (Closed)

Created:
7 years, 4 months ago by yurys
Modified:
7 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix crashes of some CPU profiler tests on Windows after r16284 All the tests that started crashing create ProfilerEventsProcessor on the stack. After r16284 SamplingCircularQueue buffer is allocated as a field of the queue instead of separate heap object. This increased self size of ProfilerEventsProcessor by about 1Mb. Windows malloc fails to allocate such an object on the stack and crashes. BUG= R=jkummerow@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16287

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use SmartPointer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -25 lines) Patch
M test/cctest/test-cpu-profiler.cc View 1 6 chunks +27 lines, -25 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
yurys
7 years, 4 months ago (2013-08-23 10:07:08 UTC) #1
Jakob Kummerow
LGTM with comment. https://codereview.chromium.org/23093022/diff/1/test/cctest/test-cpu-profiler.cc File test/cctest/test-cpu-profiler.cc (right): https://codereview.chromium.org/23093022/diff/1/test/cctest/test-cpu-profiler.cc#newcode54 test/cctest/test-cpu-profiler.cc:54: delete processor; You could use SmartPointer<ProfilerEventsProcessor> ...
7 years, 4 months ago (2013-08-23 10:25:39 UTC) #2
yurys
On 2013/08/23 10:25:39, Jakob wrote: > LGTM with comment. > > https://codereview.chromium.org/23093022/diff/1/test/cctest/test-cpu-profiler.cc > File test/cctest/test-cpu-profiler.cc ...
7 years, 4 months ago (2013-08-23 10:58:18 UTC) #3
yurys
Committed patchset #2 manually as r16287.
7 years, 4 months ago (2013-08-23 10:59:37 UTC) #4
Jakob Kummerow
7 years, 4 months ago (2013-08-23 11:01:33 UTC) #5
Message was sent while issue was closed.
On 2013/08/23 10:58:18, Yury Semikhatsky wrote:
> Wow, smart pointers in v8! Didn't know they exist, updated the test.
> 
> Is there a reason SmartPointer is used only in compiler.cc ?

Probably because too many people didn't know they exist ;-)
More seriously, because they've only been introduced a while ago, and there
hasn't been a large-scale refactoring effort to use them everywhere. I think we
should at least use them in new code when they make sense.

Patch set 2 LGTM.

Powered by Google App Engine
This is Rietveld 408576698