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

Don't scan bricks of frozen segments in verify_heap #76645

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Oct 4, 2022

Fixes #75819
Fixes #75820

As it turns out it's not a product issue and just HeapVerify specific, the fix is written by @Maoni0 and @cshung, I'm filing a PR because I had a reproduction setup.

For readers, there is a good read https://cshung.github.io/posts/brick/ that explains the "brick table" concept.

@ghost
Copy link

ghost commented Oct 4, 2022

Tagging subscribers to this area: @dotnet/gc
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #75819
Fixes #75820

As it turns out it's not a product issue and just HeapVerify specific, the fix is written by @Maoni0 and @cshung, I'm filing a PR because I had a reproduction setup.

For readers, https://cshung.github.io/posts/brick/ explains the "brick" concept.

Author: EgorBo
Assignees: -
Labels:

area-GC-coreclr

Milestone: -

#ifdef USE_REGIONS
assert (!heap_segment_read_only_p (seg));
Copy link
Member

Choose a reason for hiding this comment

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

let's make this FATAL_GC_ERROR too.

Suggested change
assert (!heap_segment_read_only_p (seg));
if (heap_segment_read_only_p (seg))
{
dprintf (1, ("seg %Ix is ro! Shouldn't happen with regions", (size_t)seg));
FATAL_GC_ERROR();
}

Copy link
Member Author

Choose a reason for hiding this comment

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

ugh, no matter how many times I tried github refuses to apply this diff:
image

so I'm going to apply by hands and add you as co-authored

Copy link
Member

@Maoni0 Maoni0 left a comment

Choose a reason for hiding this comment

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

rest LGTM!

@EgorBo EgorBo merged commit 2e698fb into dotnet:main Oct 5, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants