oh-arkruntime-thread-safety-audit
Installation
SKILL.md
OH Ark Runtime Thread Safety Audit
Use this skill to inspect, review, or fix thread-safety issues in ArkCompiler Runtime Core, especially in:
- ETS stdlib files under
static_core/plugins/ets/stdlib/**/*.ets - ETS runtime/plugin support code under
static_core/plugins/ets/** - tests under
static_core/plugins/ets/tests/ - related native C++ only when an ETS API crosses the native boundary or a TSAN report points there
The common trigger is ArkTS-Sta's concurrent execution model: public stdlib APIs can be called from taskpool, EAWorker, or multiple coroutines/workers, so static mutable state and global singletons must be treated as shared across threads unless proven otherwise.
Source-Backed APIs
Use only APIs/types that can be found in this checkout or in official OpenHarmony documentation. Examples below are source-backed by this repository; treat non-exported helpers as internal implementation references, not public API recommendations.