Skip to content
Snippets Groups Projects
Commit 1bca5dc6 authored by Icenowy Zheng's avatar Icenowy Zheng
Browse files

gallivm: orcjit: use a mutex to protect symbol looking up


When a symbol is looked up for the first time, the associated function
is built, and the building process seems to be not thread-safe.

Use a mutex to protect the symbol looking up process, which should be
serialized when the function is not built, and fast when the function is
built.

Signed-off-by: Icenowy Zheng's avatarIcenowy Zheng <uwu@icenowy.me>
parent e18b54fa
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment