oh-arkruntime-thread-safety-audit
OfficialFind and fix Ark runtime thread-safety races.
Software Engineering#thread safety#ArkTS-Sta#ETS audit#concurrency race#atomic synchronization#mutex invariants#concurrent tests
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps you detect and correct thread-safety defects in ArkCompiler Runtime Core, preventing data races and inconsistent behavior under ArkTS-Sta concurrency.
Core Features & Use Cases
- Static mutable state discovery: Identifies risky shared state patterns such as static fields, caches, registries, timers, and global singletons in ETS code.
- Concurrency reachability analysis: Verifies whether the candidate state can be reached through concurrent entry points like taskpool and EAWorker.
- Fix guidance and targeted validation: Proposes synchronization strategies (atomics, concurrent containers, mutex/lock-guarded invariants) and recommends focused concurrent/TSAN-aligned testing.
Quick Start
Ask the AI to audit a specific ArkTS-Sta stdlib or plugin ETS file for shared mutable static state and concurrency entry paths, then propose the safest fix and the most relevant concurrent test cases.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: oh-arkruntime-thread-safety-audit Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#oh-arkruntime-thread-safety-audit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.