This is an archive of the discontinued LLVM Phabricator instance.

allocation_ring_buffer_size to 0 disables stack collection
ClosedPublic

Authored by fmayer on Jan 12 2023, 1:40 PM.

Diff Detail

Event Timeline

fmayer created this revision.Jan 12 2023, 1:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 1:40 PM
Herald added a subscriber: Enna1. · View Herald Transcript
fmayer requested review of this revision.Jan 12 2023, 1:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 1:40 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Hmm do we allocate the ring buffer when tracking is not required? This would be a waste of a page.

hctim accepted this revision.Jan 12 2023, 1:56 PM
This revision is now accepted and ready to land.Jan 12 2023, 1:56 PM

Hmm do we allocate the ring buffer when tracking is not required? This would be a waste of a page.

I think this is worth to save the trouble from special casing in Bionic for nullptr buffer. This page won't get touched until the process crashes, when it will be copied for debuggerd.

Hmm do we allocate the ring buffer when tracking is not required? This would be a waste of a page.

I think this is worth to save the trouble from special casing in Bionic for nullptr buffer. This page won't get touched until the process crashes, when it will be copied for debuggerd.

Nevermind this. This was wrong.

fmayer updated this revision to Diff 488774.Jan 12 2023, 2:30 PM

reduce waste

Hmm do we allocate the ring buffer when tracking is not required? This would be a waste of a page.

I think this is worth to save the trouble from special casing in Bionic for nullptr buffer. This page won't get touched until the process crashes, when it will be copied for debuggerd.

Nevermind this. This was wrong.

Changed to address this. WDYT?

fmayer updated this revision to Diff 488792.Jan 12 2023, 3:22 PM

remove placeholder

eugenis accepted this revision.Jan 12 2023, 3:52 PM

Perfect, LGTM

This revision was automatically updated to reflect the committed changes.
Chia-hungDuan added inline comments.
compiler-rt/lib/scudo/standalone/combined.h
905

This should be OptionBit. It's causing Debug Build failure.

fmayer marked an inline comment as done.Jan 13 2023, 10:27 AM
fmayer added inline comments.
compiler-rt/lib/scudo/standalone/combined.h
905

already fixed inrG1f58aa3797d6683f8539341f8e7b4ac76666867f.

also sent rGee6536b936fdc72f5767cc343efc6a052724e00f for another mistake in this DCHECK

sorry for the problems, both my and the pre-merge bots cmake flags made this not run.

Chia-hungDuan added inline comments.Jan 13 2023, 10:35 AM
compiler-rt/lib/scudo/standalone/combined.h
905

Thanks for the quick fix!