Skip to content

Re-enable the debug-build reentrancy check in TCMalloc. - #1014

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_984026215
Draft

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_984026215

Conversation

@copybara-service

Copy link
Copy Markdown

Re-enable the debug-build reentrancy check in TCMalloc.

In debug builds, ReentrancyGuard now TC_CHECKs that malloc/free are
not reentered on the same thread, e.g. from a malloc hook or a signal handler.
Since the guard has a non-trivial destructor, fast_alloc only tail-calls
slow_alloc_large when NDEBUG is defined.

In debug builds, `ReentrancyGuard` now `TC_CHECK`s that `malloc`/`free` are
not reentered on the same thread, e.g. from a malloc hook or a signal handler.
Since the guard has a non-trivial destructor, `fast_alloc` only tail-calls
`slow_alloc_large` when `NDEBUG` is defined.

PiperOrigin-RevId: 984026215
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant