Bläddra i källkod

keep devs notes out of public API

Georgii Rylov 11 månader sedan
förälder
incheckning
813831de0e
2 ändrade filer med 1 tillägg och 7 borttagningar
  1. 1 1
      core/iwasm/common/wasm_runtime_common.c
  2. 0 6
      core/iwasm/include/wasm_export.h

+ 1 - 1
core/iwasm/common/wasm_runtime_common.c

@@ -1748,7 +1748,7 @@ wasm_iterate_callstack(const wasm_exec_env_t exec_env,
 {
     /*
      * Note for devs: please refrain from such modifications inside of
-     * wasm_iterate_callstack
+     * wasm_iterate_callstack to preserve async-signal-safety
      * - any allocations/freeing memory
      * - dereferencing any pointers other than: exec_env, exec_env->module_inst,
      * exec_env->module_inst->module, pointers between stack's bottom and

+ 0 - 6
core/iwasm/include/wasm_export.h

@@ -892,12 +892,6 @@ typedef bool (*wasm_frame_callback)(void *, wasm_frame_ptr_t);
  * - exec_env->module_inst
  * - exec_env->module_inst->module
  *
- * Note for devs: please refrain from such modifications inside of this call
- * - any allocations/freeing memory
- * - dereferencing any pointers other than: exec_env, exec_env->module_inst,
- * exec_env->module_inst->module, pointers between stack's bottom and
- * top_boundary
- *
  * @param exec_env the execution environment that containes frames
  * @param callback the callback function provided by the user
  * @param user_data context for callback provided by the user