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

Fix win32 memory leak by using raw file operations #3906

Merged
merged 3 commits into from Dec 19, 2021

Conversation

lukebakken
Copy link
Collaborator

Not ideal but this skips all file servers.

@lhoguin
Copy link
Contributor

lhoguin commented Dec 17, 2021

The commit title is a bit inaccurate as we were already using prim_file which is essentially the same as a raw operation. It would be better to describe that you are using read instead of read_file.

@kjnilsson
Copy link
Contributor

could the leak be in with_handle which I also believe is bypassed by this commit?

@lukebakken
Copy link
Collaborator Author

@jhogberg figured it out in record time - erlang/otp#5527

@lukebakken
Copy link
Collaborator Author

@lhoguin I will rewrite the commit message, thanks for pointing that out.

@lukebakken
Copy link
Collaborator Author

@kjnilsson that's what I originally thought but it's not the FHC.

@lukebakken
Copy link
Collaborator Author

lukebakken commented Dec 18, 2021

@lhoguin @michaelklishin I'll re-test this on my Windows system today, then I'll move it out of draft.

@lukebakken lukebakken marked this pull request as ready for review December 18, 2021 19:49
@lukebakken
Copy link
Collaborator Author

procexp-erl-rmq-gh-3895-20211218_1200

@michaelklishin michaelklishin added this to the 3.9.12 milestone Dec 19, 2021
@michaelklishin michaelklishin merged commit 2ec8596 into master Dec 19, 2021
@michaelklishin michaelklishin deleted the lukebakken/fix-mem-leak branch December 19, 2021 04:15
michaelklishin added a commit that referenced this pull request Dec 19, 2021
Fix win32 memory leak by using `raw` file operations (backport #3906)
michaelklishin added a commit that referenced this pull request Dec 20, 2021
Fix win32 memory leak by using `raw` file operations (backport #3906) (backport #3917)
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

Successfully merging this pull request may close these issues.

None yet

4 participants