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

Debugger: Avoid mem write tag lookup on small alloc #15377

Merged
merged 2 commits into from
Feb 6, 2022

Conversation

unknownbrackets
Copy link
Collaborator

This basically wraps every case of GetMemWriteTagAt() in a check to make sure the size is large enough that we'll use the result.

We do check that for video uploads, but only for larger sizes anyway, so there should be no change there.

Because this would break memory breakpoints alone, I also made adding a memory breakpoint automatically enable detailed memory info for the lifetime of the breakpoint. It makes sense, because you want the greater detail and it'll already be slower in jit, etc.

See #15251.

-[Unknown]

Usually there won't be any breakpoints, so it makes sense to enable detail
when they're added automatically.
@unknownbrackets unknownbrackets added this to the v1.13.0 milestone Feb 6, 2022
@hrydgard
Copy link
Owner

hrydgard commented Feb 6, 2022

That's a neat solution to keep the memchecks working if any. Nice!

@hrydgard hrydgard enabled auto-merge February 6, 2022 17:48
@hrydgard hrydgard merged commit 9eeea5a into hrydgard:master Feb 6, 2022
@unknownbrackets unknownbrackets deleted the memblock-detail branch February 6, 2022 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants