Chromium Code Reviews
DescriptionRevert 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 #
Messages
Total messages: 4 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||