Skip to content

Move exception lock to ModuleInstance data.#4772

Open
vchigrin wants to merge 1 commit intobytecodealliance:mainfrom
vchigrin:fine-grained-lock
Open

Move exception lock to ModuleInstance data.#4772
vchigrin wants to merge 1 commit intobytecodealliance:mainfrom
vchigrin:fine-grained-lock

Conversation

@vchigrin
Copy link

This lock acquired on each native function call. This cause performance impact on programs, containing many native function calls, and running in multithreaded environment.

This lock acquired on each native function call. This cause performance impact
on programs, containing many native function calls, and running in multithreaded environment.
@lum1n0us lum1n0us added the bug-fix Determine if this PR addresses a bug. It will be used by scripts to classify PRs. label Jan 23, 2026
@lum1n0us lum1n0us added the breaking-change Determine if this PR introduces breaking changes. It will be used by scripts to classify PRs. label Feb 3, 2026
Copy link
Contributor

@lum1n0us lum1n0us left a comment

Choose a reason for hiding this comment

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

  • The PR has affected the layout of WASMModuleInstanceExtra, which will change key offsetof values in AOT files. Therefore, it requires a new AOT_CURRENT_VERSION in core/config.h.

  • Obviously, there is a failed CI that should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Determine if this PR introduces breaking changes. It will be used by scripts to classify PRs. bug-fix Determine if this PR addresses a bug. It will be used by scripts to classify PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants