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

Implement implicit_context for helper functions. #3656

Merged
merged 46 commits into from
Jul 19, 2024

Conversation

saxena-anurag
Copy link
Contributor

@saxena-anurag saxena-anurag commented Jun 20, 2024

Fixes #3645

Description

This PR contains changes to support implicit context for helper functions. This required the following changes:

  1. Update native code generation to also pass ctx to all the helper functions as 6th argument. Note that ubpf already does the same for JIT and interpret paths (though there was a bug in ubpf which was recently fixed, and is now included in eBPF).
  2. Changed logic to resolve helper functions to now also get whether the helper function requires implicit context.
  3. Checks in native module to ensure that an older native module (that does not support implicit context) does not get loaded if the extension requires implicit context for any of the helper functions used by the native module.
  4. Updated the minor version to 0.18.0, to allow adding checks in native code.

Testing

Existing CICD. Also added new tests for implicit context.

Documentation

Updated documentation.

Installation

No.

mtfriesen
mtfriesen previously approved these changes Jul 15, 2024
Alan-Jowett
Alan-Jowett previously approved these changes Jul 17, 2024
@saxena-anurag saxena-anurag added this pull request to the merge queue Jul 19, 2024
Merged via the queue into microsoft:main with commit ffb3638 Jul 19, 2024
88 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.

Support for implicit context for helper functions
4 participants