Skip to content

Fix malloc non-thread-safe usage in test#2022

Merged
wenyongh merged 1 commit intobytecodealliance:mainfrom
eloparco:eloparco/malloc-not-thread-safe-in-test
Mar 11, 2023
Merged

Fix malloc non-thread-safe usage in test#2022
wenyongh merged 1 commit intobytecodealliance:mainfrom
eloparco:eloparco/malloc-not-thread-safe-in-test

Conversation

@eloparco
Copy link
Contributor

In the WASI thread test modified in this PR, malloc was used in multiple threads without a lock. But wasi-libc implementation of malloc is not thread-safe.

Copy link
Collaborator

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

LGTM

@wenyongh wenyongh merged commit ea6cef7 into bytecodealliance:main Mar 11, 2023
wenyongh added a commit to wenyongh/wasm-micro-runtime that referenced this pull request Mar 12, 2023
Fix malloc non-thread-safe usage in lib-wasi-threads test (bytecodealliance#2022)
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…liance#2022)

In the WASI thread test modified in this PR, malloc was used in multiple threads
without a lock. But wasi-libc implementation of malloc is not thread-safe.
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