summaryrefslogtreecommitdiff
path: root/src/wasm-module-building.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-module-building.h')
-rw-r--r--src/wasm-module-building.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-module-building.h b/src/wasm-module-building.h
index 990ea5191..d03eef7c8 100644
--- a/src/wasm-module-building.h
+++ b/src/wasm-module-building.h
@@ -69,6 +69,10 @@ static std::mutex debug;
// generally slower than generation; in the optimal case, we never
// lock beyond the first step, and all further work is lock-free.
//
+// N.B.: Optimizing functions in parallel with adding functions is possible,
+// but the rest of the global state of the module should be fixed,
+// such as globals, imports, etc. Function-parallel optimization passes
+// may read (but not modify) those fields.
class OptimizingIncrementalModuleBuilder {
Module* wasm;