You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have some properties that we mark as PropertiesThatTriggerRelinking in wasi and wasm. Currently we are most probably not marking all of these, that should be marked this way.
EmccInitialHeapSize- together with EmccMaximumHeapSize it's controlling the memory layout. It should be added by a symmetry rule. Heap size configuration applies only for browser scenarios, same as ExceptionHandling.
Add only to WASI:
nothing identified.
Add to both:
WasmEnableThreads - affects memory layout, e.g. usage of SharedArrayBuffer in the browser or DISABLE_THREADS switches in the runtime.
RunAOTCompilation - the native objects and linked outputs are no longer valid for the new value and must be rebuilt.
PublishTrimmed - the set of assemblies and code passed to the native linker changes significantly.
It is best to trigger relinking only for a targeted subset of properties (affecting the native build, e.g. memory layout, code generation, feature toggles, linking flags). If we flagged all of them, we would possibly unnecessarily prolong the build time.
Add only to WASM:
EmccInitialHeapSize- together with EmccMaximumHeapSize it's controlling the memory layout. It should be added by a symmetry rule. Heap size configuration applies only for browser scenarios, same as ExceptionHandling.
Add only to WASI:
nothing identified.
Add to both:
WasmEnableThreads - affects memory layout, e.g. usage of SharedArrayBuffer in the browser or DISABLE_THREADS switches in the runtime.
RunAOTCompilation - the native objects and linked outputs are no longer valid for the new value and must be rebuilt.
PublishTrimmed - the set of assemblies and code passed to the native linker changes significantly.
PropertiesThatTriggerRelinking supports only properties. There are items that could also affect native build but we don't provide a mechanism to trigger relink on their change:
EmccExportedRuntimeMethod
EmccExportedFunction
WasmOptConfigurationFlags
Supporting items would require some more complex comparison logic to check for both: metadata and identity. Because of complexity of this solution, I would skip items.
Activity
dotnet-policy-service commentedon Jul 19, 2024
Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.
ilonatommy commentedon Jul 23, 2025
It is best to trigger relinking only for a targeted subset of properties (affecting the native build, e.g. memory layout, code generation, feature toggles, linking flags). If we flagged all of them, we would possibly unnecessarily prolong the build time.
Add only to WASM:
EmccInitialHeapSize- together withEmccMaximumHeapSizeit's controlling the memory layout. It should be added by a symmetry rule. Heap size configuration applies only for browser scenarios, same asExceptionHandling.Add only to WASI:
Add to both:
WasmEnableThreads- affects memory layout, e.g. usage ofSharedArrayBufferin the browser orDISABLE_THREADSswitches in the runtime.RunAOTCompilation- the native objects and linked outputs are no longer valid for the new value and must be rebuilt.PublishTrimmed- the set of assemblies and code passed to the native linker changes significantly.PropertiesThatTriggerRelinkingsupports only properties. There are items that could also affect native build but we don't provide a mechanism to trigger relink on their change:EmccExportedRuntimeMethodEmccExportedFunctionWasmOptConfigurationFlagsSupporting items would require some more complex comparison logic to check for both: metadata and identity. Because of complexity of this solution, I would skip items.