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

Issue 1370693003: Revert of Add thread-local allocation context for tracing (Closed)

Created:
5 years, 2 months ago by Cait (Slow)
Modified:
5 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Add thread-local allocation context for tracing (patchset #17 id:320001 of https://codereview.chromium.org/1340013002/ ) Reason for revert: Consistent test failures on Win7 dbg http://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%281%29/builds/42030/steps/base_unittests/logs/AllocationContextTest.PseudoStackBeginEndTrace AllocationContextTest.PseudoStackBeginEndTrace (run #1): [ RUN ] AllocationContextTest.PseudoStackBeginEndTrace [3804:3148:0925/051951:43082047:FATAL:memory_profiler_allocation_context.cc(61)] Check failed: frame == *tracker->pseudo_stack_.top() (Donut vs. Donut) Backtrace: base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x1009A3A1+520392] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x100F1EEB+879634] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x102A1258+2645887] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x10300F01+3038248] base::trace_event::AllocationContextTest_PseudoStackScopedTrace_Test::`scalar deleting destructor' [0x00CA30CE+446] base::trace_event::AllocationContextTest_PseudoStackScopedTrace_Test::`scalar deleting destructor' [0x00CA2FDB+203] base::trace_event::AllocationContextTest_PseudoStackBeginEndTrace_Test::TestBody [0x00CA3913+467] testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> [0x00DB1357+55] testing::Test::Run [0x00DCEFFE+174] testing::TestInfo::Run [0x00DCF29D+221] testing::TestCase::Run [0x00DCF13F+239] testing::internal::UnitTestImpl::RunAllTests [0x00DCF776+726] testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> [0x00DB1447+55] testing::UnitTest::Run [0x00DCF42B+267] RUN_ALL_TESTS [0x00E05E6F+15] base::TestSuite::Run [0x00E0602B+171] `anonymous namespace'::RunTestSuite [0x00DF8367+55] base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>::Run [0x00DF8306+54] base::internal::InvokeHelper<0,int,base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>,base::internal::TypeList<int const &,char * * const &> >::MakeItSo [0x00DF8245+37] base::internal::Invoker<base::IndexSequence<0,1>,base::internal::BindState<base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>,int __cdecl(int,char * *),base::internal::TypeList<int,char * *> >,base::internal::TypeList<base::internal::UnwrapTrai [0x00DF82BF+111] base::Callback<int __cdecl(void)>::Run [0x004FCC9F+47] base::`anonymous namespace'::LaunchUnitTestsInternal [0x00DFF8C1+497] base::LaunchUnitTests [0x00DFF61D+109] main [0x00DF8410+80] __tmainCRTStartup [0x00DF6369+409] (f:\dd ctools\crt\crtw32\dllstuff\crtexe.c:626) mainCRTStartup [0x00DF64AD+13] (f:\dd ctools\crt\crtw32\dllstuff\crtexe.c:466) BaseThreadInitThunk [0x7638337A+18] RtlInitializeExceptionChain [0x76EC92B2+99] RtlInitializeExceptionChain [0x76EC9285+54] AllocationContextTest.PseudoStackBeginEndTrace (run #2): [ RUN ] AllocationContextTest.PseudoStackBeginEndTrace [2724:1644:0925/051955:43086742:FATAL:memory_profiler_allocation_context.cc(61)] Check failed: frame == *tracker->pseudo_stack_.top() (Donut vs. Donut) Backtrace: base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x1009A3A1+520392] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x100F1EEB+879634] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x102A1258+2645887] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x10300F01+3038248] base::trace_event::AllocationContextTest_PseudoStackScopedTrace_Test::`scalar deleting destructor' [0x00CA30CE+446] base::trace_event::AllocationContextTest_PseudoStackScopedTrace_Test::`scalar deleting destructor' [0x00CA2FDB+203] base::trace_event::AllocationContextTest_PseudoStackBeginEndTrace_Test::TestBody [0x00CA3913+467] testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> [0x00DB1357+55] testing::Test::Run [0x00DCEFFE+174] testing::TestInfo::Run [0x00DCF29D+221] testing::TestCase::Run [0x00DCF13F+239] testing::internal::UnitTestImpl::RunAllTests [0x00DCF776+726] testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> [0x00DB1447+55] testing::UnitTest::Run [0x00DCF42B+267] RUN_ALL_TESTS [0x00E05E6F+15] base::TestSuite::Run [0x00E0602B+171] `anonymous namespace'::RunTestSuite [0x00DF8367+55] base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>::Run [0x00DF8306+54] base::internal::InvokeHelper<0,int,base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>,base::internal::TypeList<int const &,char * * const &> >::MakeItSo [0x00DF8245+37] base::internal::Invoker<base::IndexSequence<0,1>,base::internal::BindState<base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>,int __cdecl(int,char * *),base::internal::TypeList<int,char * *> >,base::internal::TypeList<base::internal::UnwrapTrai [0x00DF82BF+111] base::Callback<int __cdecl(void)>::Run [0x004FCC9F+47] base::`anonymous namespace'::LaunchUnitTestsInternal [0x00DFF8C1+497] base::LaunchUnitTests [0x00DFF61D+109] main [0x00DF8410+80] __tmainCRTStartup [0x00DF6369+409] (f:\dd ctools\crt\crtw32\dllstuff\crtexe.c:626) mainCRTStartup [0x00DF64AD+13] (f:\dd ctools\crt\crtw32\dllstuff\crtexe.c:466) BaseThreadInitThunk [0x7638337A+18] RtlInitializeExceptionChain [0x76EC92B2+99] RtlInitializeExceptionChain [0x76EC9285+54] AllocationContextTest.PseudoStackBeginEndTrace (run #3): [ RUN ] AllocationContextTest.PseudoStackBeginEndTrace [4072:3120:0925/051957:43088162:FATAL:memory_profiler_allocation_context.cc(61)] Check failed: frame == *tracker->pseudo_stack_.top() (Donut vs. Donut) Backtrace: base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x1009A3A1+520392] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x100F1EEB+879634] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x102A1258+2645887] base::time_internal::TimeBase<base::ThreadTicks>::ToInternalValue [0x10300F01+3038248] base::trace_event::AllocationContextTest_PseudoStackScopedTrace_Test::`scalar deleting destructor' [0x00CA30CE+446] base::trace_event::AllocationContextTest_PseudoStackScopedTrace_Test::`scalar deleting destructor' [0x00CA2FDB+203] base::trace_event::AllocationContextTest_PseudoStackBeginEndTrace_Test::TestBody [0x00CA3913+467] testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> [0x00DB1357+55] testing::Test::Run [0x00DCEFFE+174] testing::TestInfo::Run [0x00DCF29D+221] testing::TestCase::Run [0x00DCF13F+239] testing::internal::UnitTestImpl::RunAllTests [0x00DCF776+726] testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> [0x00DB1447+55] testing::UnitTest::Run [0x00DCF42B+267] RUN_ALL_TESTS [0x00E05E6F+15] base::TestSuite::Run [0x00E0602B+171] `anonymous namespace'::RunTestSuite [0x00DF8367+55] base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>::Run [0x00DF8306+54] base::internal::InvokeHelper<0,int,base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>,base::internal::TypeList<int const &,char * * const &> >::MakeItSo [0x00DF8245+37] base::internal::Invoker<base::IndexSequence<0,1>,base::internal::BindState<base::internal::RunnableAdapter<int (__cdecl*)(int,char * *)>,int __cdecl(int,char * *),base::internal::TypeList<int,char * *> >,base::internal::TypeList<base::internal::UnwrapTrai [0x00DF82BF+111] base::Callback<int __cdecl(void)>::Run [0x004FCC9F+47] base::`anonymous namespace'::LaunchUnitTestsInternal [0x00DFF8C1+497] base::LaunchUnitTests [0x00DFF61D+109] main [0x00DF8410+80] __tmainCRTStartup [0x00DF6369+409] (f:\dd ctools\crt\crtw32\dllstuff\crtexe.c:626) mainCRTStartup [0x00DF64AD+13] (f:\dd ctools\crt\crtw32\dllstuff\crtexe.c:466) BaseThreadInitThunk [0x7638337A+18] RtlInitializeExceptionChain [0x76EC92B2+99] RtlInitializeExceptionChain [0x76EC9285+54] Original issue's description: > This introduces a thread-local context that can be used for heap > profiling. It contains a pseudo stack where trace events are the > stack frames. There is a fast early-out in case capturing context > is disabled. > > This is a prerequisite for the heap profiler in chrome://tracing. It > will log allocations with context obtained from the system introduced > here. > > This is intended to replace the tcmalloc-specific heap profiler in > base/trace_event/trace_event_memory and its pseudo stack once the heap > profiler lands. > > BUG=524631 > > Committed: https://crrev.com/abff8221c8d35916a8d7e12845ba61bc5c48aff8 > Cr-Commit-Position: refs/heads/master@{#350799} TBR=dsinclair@chromium.org,picksi@google.com,primiano@chromium.org,ruuda@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=524631 Committed: https://crrev.com/4a444fd01087ce3c5815e833c5c74d7f38f3e3b9 Cr-Commit-Position: refs/heads/master@{#350821}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -431 lines) Patch
M base/trace_event/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
D base/trace_event/memory_profiler_allocation_context.h View 1 chunk +0 lines, -119 lines 0 comments Download
D base/trace_event/memory_profiler_allocation_context.cc View 1 chunk +0 lines, -91 lines 0 comments Download
D base/trace_event/memory_profiler_allocation_context_unittest.cc View 1 chunk +0 lines, -200 lines 0 comments Download
M base/trace_event/trace_event.gypi View 2 chunks +0 lines, -3 lines 0 comments Download
M base/trace_event/trace_log.cc View 3 chunks +0 lines, -15 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Cait (Slow)
Created Revert of Add thread-local allocation context for tracing
5 years, 2 months ago (2015-09-25 14:40:06 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370693003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370693003/1
5 years, 2 months ago (2015-09-25 14:41:02 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-09-25 14:42:27 UTC) #3
commit-bot: I haz the power
5 years, 2 months ago (2015-09-25 14:43:07 UTC) #4
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/4a444fd01087ce3c5815e833c5c74d7f38f3e3b9
Cr-Commit-Position: refs/heads/master@{#350821}

Powered by Google App Engine
This is Rietveld 408576698