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(runtime/os): use GetPerformanceInfo for swap info on Windows #17433

Merged
merged 3 commits into from Jan 15, 2023

Conversation

littledivy
Copy link
Member

Fixes #17417

According to https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-memorystatusex , stat.ullTotalPageFile value is reliable only from GetPerformanceInfo()

Also see GuillaumeGomez/sysinfo#534

@littledivy littledivy marked this pull request as ready for review January 15, 2023 10:39
@CLAassistant
Copy link

CLAassistant commented Jan 15, 2023

CLA assistant check
All committers have signed the CLA.

@littledivy
Copy link
Member Author

littledivy commented Jan 15, 2023

(oops - forgot I had my brother's (@nightlyistaken) git config on windows)

@littledivy littledivy enabled auto-merge (squash) January 15, 2023 12:54
@littledivy littledivy merged commit a4c98e3 into denoland:main Jan 15, 2023
bartlomieju pushed a commit that referenced this pull request Jan 16, 2023
)

Fixes #17417

According to
https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-memorystatusex
, `stat.ullTotalPageFile` value is reliable only from
GetPerformanceInfo()

Also see GuillaumeGomez/sysinfo#534

Co-authored-by: Nightly <dhairysrivastava5@gmail.com>
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.

systemMemoryInfo test panicks during cargo test
4 participants