Skip to content

Remove page map from PAL virtual memory allocator - #80105

Merged
janvorli merged 1 commit into
dotnet:mainfrom
janvorli:remove-virtual-memory-bitarray-2
Jan 3, 2023
Merged

Remove page map from PAL virtual memory allocator#80105
janvorli merged 1 commit into
dotnet:mainfrom
janvorli:remove-virtual-memory-bitarray-2

Conversation

@janvorli

Copy link
Copy Markdown
Member

This change removes the page map from the PAL virtual memory allocator. This map is only used for the VirtualQuery API implementation and the usage of that API in the runtime actually only care about whether a virtual memory range is free or not (it doesn't care about whether the memory is reserved or committed, and it doesn't care about the actual protection).

@janvorlijanvorli added the area-PAL-coreclr only for closed issues label Jan 2, 2023
@janvorlijanvorli added this to the 8.0.0 milestone Jan 2, 2023
@janvorli
janvorli requested a review from jkotasJanuary 2, 2023 22:39
@janvorlijanvorli self-assigned this Jan 2, 2023
@janvorli

Copy link
Copy Markdown
MemberAuthor

cc: @mangod9

@mangod9mangod9 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, certainly feels less risky than the full GC PAL change.

@jkotas

Copy link
Copy Markdown
Member

Is ClrVirtualAllocWithinRange the only place where VirtualQuery is called on Unix?

@janvorli

Copy link
Copy Markdown
MemberAuthor

Is ClrVirtualAllocWithinRange the only place where VirtualQuery is called on Unix?

Yes, that's the only one.

@janvorli

Copy link
Copy Markdown
MemberAuthor

/backport to release/7.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3838505566

@ghostghost locked as resolved and limited conversation to collaborators Feb 3, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-PAL-coreclronly for closed issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@janvorli@jkotas@mangod9