We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unload_process_handler
1 parent dc170ba commit 491af71Copy full SHA for 491af71
lib/src/wasm/mod.rs
@@ -798,7 +798,15 @@ pub(crate) fn get_engine<'a>() -> &'a Engine {
798
/// to undefined behavior.
799
pub(crate) unsafe fn free_engine() {
800
#[allow(static_mut_refs)]
801
- ENGINE.take().unwrap().unload_process_handlers()
+ #[cfg(any(
802
+ target_arch = "x86_64",
803
+ target_arch = "aarch64",
804
+ target_arch = "riscv64",
805
+ target_arch = "s390x",
806
+ ))]
807
+ {
808
+ ENGINE.take().unwrap().unload_process_handlers()
809
+ }
810
}
811
812
pub(crate) fn new_linker() -> Linker<ScanContext<'static, 'static>> {
0 commit comments