Skip to content

Commit c49e277

Browse files
committed
fix: resolve HashMap memory provider size inconsistency
Fixed type mismatch where HashMap type alias used NoStdProvider<1024> but instances were allocated with safe_managed_alloc\!(4096). Changed HashMap type alias to use NoStdProvider<4096> for consistency. This resolves compilation errors in ASIL capability engine tests and ensures memory provider size consistency across the codebase.
1 parent 98cd1cf commit c49e277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrt-runtime/src/stackless/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use wrt_foundation::{
3535

3636
// Type aliases for pure no_std mode
3737
#[cfg(not(any(feature = "std", feature = "alloc")))]
38-
type HashMap<K, V> = BoundedMap<K, V, 16, NoStdProvider<1024>>; // 16 concurrent instances max
38+
type HashMap<K, V> = BoundedMap<K, V, 16, NoStdProvider<4096>>; // 16 concurrent instances max
3939
#[cfg(not(any(feature = "std", feature = "alloc")))]
4040
type Vec<T> = BoundedVec<T, 256, NoStdProvider<4096>>; // 256 operands max
4141
#[cfg(not(any(feature = "std", feature = "alloc")))]

0 commit comments

Comments
 (0)