Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a feature flag to control handle tags for heap handles #8463

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pixelflinger
Copy link
Collaborator

heap allocated handle tags are kept forever and we suspect this is causing problems. the new feature flag "backend.disable_heap_handle_tags" is enabled by default and controls if we store these tags at all or not.

BUGS=[397766275]

heap allocated handle tags are kept forever and we suspect this is
causing problems. the new feature flag "backend.disable_heap_handle_tags"
is enabled by default and controls if we store these tags at all or not.

BUGS=[397766275]
@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Feb 20, 2025
@@ -67,7 +68,8 @@ class DebugTag {
template<size_t P0, size_t P1, size_t P2>
class HandleAllocator : public DebugTag {
public:
HandleAllocator(const char* name, size_t size, bool disableUseAfterFreeCheck) noexcept;
HandleAllocator(const char* name, size_t size,
bool disableUseAfterFreeCheck, bool disableHeapHandleTags = false) noexcept;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why the = false default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants