diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 2b3d0db74..325d28ff3 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -177,6 +177,7 @@ void wasi_unstable_proc_exit(Word); Word wasi_unstable_clock_time_get(Word, uint64_t, Word); Word wasi_unstable_random_get(Word, Word); Word pthread_equal(Word left, Word right); +void emscripten_notify_memory_growth(Word); // Support for embedders, not exported to Wasm. diff --git a/src/exports.cc b/src/exports.cc index 01aeb9623..bdefddeb6 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -908,6 +908,8 @@ void wasi_unstable_proc_exit(Word /*exit_code*/) { Word pthread_equal(Word left, Word right) { return static_cast(left == right); } +void emscripten_notify_memory_growth(Word /*memory_index*/) {} + Word set_tick_period_milliseconds(Word period_milliseconds) { TimerToken token = 0; return contextOrEffectiveContext()->setTimerPeriod(std::chrono::milliseconds(period_milliseconds), diff --git a/src/wasm.cc b/src/wasm.cc index 3c0473e87..2295e9880 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -89,6 +89,7 @@ void WasmBase::registerCallbacks() { &ConvertFunctionWordToUint32::convertFunctionWordToUint32) _REGISTER(pthread_equal); + _REGISTER(emscripten_notify_memory_growth); #undef _REGISTER // Register the capability with the VM if it has been allowed, otherwise register a stub.