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

sdalloc - Why does this function accept a range of pointers? #367

Open
schveiguy opened this issue May 12, 2024 · 0 comments
Open

sdalloc - Why does this function accept a range of pointers? #367

schveiguy opened this issue May 12, 2024 · 0 comments

Comments

@schveiguy
Copy link
Contributor

Looking through the GC code, and I'm puzzled why this accepts an array of pointers, and then only uses one of them:

uint batchAllocSmall(ref CachedExtentMap emap, ubyte sizeClass,

The buffer parameter is passed to the batchAllocate function of the bin, but only one pointer is passed, should the whole thing be passed?

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

No branches or pull requests

1 participant