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

Simulate EX_RUNDOWN_REF_CACHE_AWARE APIS #181

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

Alan-Jowett
Copy link
Member

This pull request primarily introduces a new type EX_RUNDOWN_REF_CACHE_AWARE, which is an extension of EX_RUNDOWN_REF and is designed to be cache aware for better performance. It also adds new APIs to allocate, acquire, release, and free this new type. Additionally, it includes tests for these new APIs and the existing EX_RUNDOWN_REF APIs.

Here are the most important changes:

Type and API additions:

  • inc/usersim/ex.h: Introduced a new type EX_RUNDOWN_REF_CACHE_AWARE which is similar to EX_RUNDOWN_REF but is cache aware. This type is expected to improve performance by being aware of the cache. Also, added new APIs ExAllocateCacheAwareRundownProtection, ExAcquireRundownProtectionCacheAware, ExReleaseRundownProtectionCacheAware, and ExFreeCacheAwareRundownProtection to work with this new type. [1] [2]
  • src/ex.cpp: Implemented the new APIs introduced in inc/usersim/ex.h. These APIs are designed to allocate, acquire, release, and free the EX_RUNDOWN_REF_CACHE_AWARE type.

Test additions:

  • tests/ex_test.cpp: Added new tests for the EX_RUNDOWN_REF and EX_RUNDOWN_REF_CACHE_AWARE APIs. These tests ensure that the APIs behave as expected, especially in terms of acquiring and releasing rundown protections. [1] [2]

@Alan-Jowett Alan-Jowett merged commit d9a58fb into microsoft:main Apr 4, 2024
5 checks 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

Successfully merging this pull request may close these issues.

2 participants