Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Dec 4, 2025

The caller should decide whether wrapping the policy in Arc<RwLock> is necessary. This should make #7609 a bit smoother.

  • exec_policy_for() -> load_exec_policy_for_features()
  • introduce load_exec_policy() that does not take Features as an arg
  • both return Result<Policy, ExecPolicyError> instead of Result<Arc<RwLock>, ExecPolicyError>`

This simplifies the tests as they have no need for Arc<RwLock>.

Copy link
Contributor

@zhao-oai zhao-oai left a comment

Choose a reason for hiding this comment

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

lgtm!

@bolinfest bolinfest merged commit 0972cd9 into main Dec 4, 2025
48 of 52 checks passed
@bolinfest bolinfest deleted the pr7615 branch December 4, 2025 23:13
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants