Skip to content

Commit

Permalink
Reword LinearMemory and MemoryCreator note about being a new API (b…
Browse files Browse the repository at this point in the history
…ytecodealliance#9916)

The API is three and a half years old at this point. Not really new anymore. But
still something that requires care to use well, so leaving the disclaimer in
place, just adjusted for 2025.
  • Loading branch information
fitzgen authored Dec 31, 2024
1 parent cb51a4f commit f2ab725
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/wasmtime/src/runtime/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,8 @@ impl Memory {
/// guard page. Additionally the safety concerns explained in ['Memory'], for
/// accessing the memory apply here as well.
///
/// Note that this is a relatively new and experimental feature and it is
/// recommended to be familiar with wasmtime runtime code to use it.
/// Note that this is a relatively advanced feature and it is recommended to be
/// familiar with wasmtime runtime code to use it.
pub unsafe trait LinearMemory: Send + Sync + 'static {
/// Returns the number of allocated bytes which are accessible at this time.
fn byte_size(&self) -> usize;
Expand Down Expand Up @@ -702,8 +702,8 @@ pub unsafe trait LinearMemory: Send + Sync + 'static {
/// treated as owned by wasmtime instance, and any modification of them outside
/// of wasmtime invoked routines is unsafe and may lead to corruption.
///
/// Note that this is a relatively new and experimental feature and it is
/// recommended to be familiar with wasmtime runtime code to use it.
/// Note that this is a relatively advanced feature and it is recommended to be
/// familiar with Wasmtime runtime code to use it.
pub unsafe trait MemoryCreator: Send + Sync {
/// Create a new `LinearMemory` object from the specified parameters.
///
Expand Down

0 comments on commit f2ab725

Please sign in to comment.