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

Reduce number of aot_copy_exception inside aot_call_function #4059

Conversation

palchikov
Copy link
Contributor

Remove redundant calls to aot_copy_exception. Exception has checked inside invoke_native_internal and the result has returned back. There is no need to recheck two more times. Each aot_copy_exception locks global _exception_lock, this can be bottleneck and hit performance in concurrent environments.
Relates to #4058

Copy link
Collaborator

@TianlongLiang TianlongLiang left a comment

Choose a reason for hiding this comment

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

LGTM

@loganek
Copy link
Collaborator

loganek commented Feb 5, 2025

LGTM, I'm merging as the build failure is not related to the change (it's due to the rust flags which was already fixed in #4057)

@loganek loganek merged commit 67cd504 into bytecodealliance:main Feb 5, 2025
384 of 385 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.

3 participants