Files
wamr/core/shared/platform
James Ring 8ac06490db Set thread information earlier in exec_env creation (#3967)
For boundary checking, WAMR calls `pthread_attr_np`, which is
unfortunately quite slow on Linux when not called on the main thread
(see https://github.com/bytecodealliance/wasm-micro-runtime/issues/3966
for discussion).

This change moves the cost of stack bounds checking earlier in the
wasm_exec_env creation process. The idea is that it's perhaps better to
pay the price when creating the execution environment rather than in the
first function call.

The original code is left in place inside
`call_wasm_with_hw_bound_check` in case the `wasm_exec_env` is created
via `wasm_runtime_spawn_exec_env`.
2024-12-24 07:25:52 +08:00
..
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00
2024-09-11 08:59:16 +08:00

This folder contains the platform abstract layer for multiple platforms. To support a new platform, you can simply create a new folder here and implement all the APIs defined in include folder.

Refer to port_wamr.md for how to port WAMR to a target platform.