wado-lang/wado / .claude/skills/vendor-submodules
vendor-submodules
VerifiedLocate and sync the reference specs and runtimes vendored under vendor/ — the Wasm, WASI P3, and Component Model specs, and the wasm-tools and wasmtime sources. Use whenever an answer should come from one of those sources rather than memory, and whenever vendor/ is missing or stale.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.8 KB |
| reference/current_thread_split.patch | other | 1.9 KB |
| reference/trace_fiber_roots.patch | other | 3.6 KB |
reference/current_thread_split.patch
View on GitHubdiff --git a/crates/wasmtime/src/runtime/component/concurrent.rs b/crates/wasmtime/src/runtime/component/concurrent.rs
index f6b921b671..9eabef53a3 100644
--- a/crates/wasmtime/src/runtime/component/concurrent.rs
+++ b/crates/wasmtime/src/runtime/component/concurrent.rs
@@ -1601,6 +1601,12 @@ impl<T> StoreContextMut<'_, T> {
impl StoreOpaque {
/// Returns the currently-running thread, promoting any deferred lazy thread
/// into a fully-materialized `CurrentThread`.
+ ///
+ /// Every resource handle crossing the canonical ABI asks for this (see
+ /// `ResourceTables::resource_lower_borrow` and friends), so the two checks
+ /// that answer it stay here and the promotion lives in a cold callee that
+ /// does not stop this from inlining.
+ #[inline]
pub(crate) fn current_thread(&mut self) -> Result<CurrentThread> {
// Without concurrency support there is nothing to force.
if !self.concurrency_support() {
@@ -1619,6 +1625,14 @@ impl StoreOpaque {
.unforced_current_thread);
}
+ self.force_deferred_current_thread()
+ }
+
+ /// Materialize the deferred frames a fused adapter pushed inline, and
+ /// return the thread they resolve to. The slow half of `current_thread`.
+ #[cold]
+ #[inline(never)]
+ fn force_deferred_current_thread(&mut self) -> Result<CurrentThread> {
// The component instance whose adapters pushed the deferred frames; all
// frames in a guest-to-guest, sync-to-sync call chain of fused adapters
// live within a single `wasmtime::component::Instance` (because
@@ -2343,6 +2357,7 @@ impl StoreOpaque {
/// Used by `ResourceTables` to record the scope of a borrow to get undone
/// in the future.
+ #[inline]
pub(crate) fn current_scope_id(&mut self) -> Result<Option<u32>> {
if !self.concurrency_support() {
return self.current_scope_id_not_concurrent();
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |