From 995adac992e859428694e08960467c1110c579bf Mon Sep 17 00:00:00 2001 From: Lukas Lihotzki Date: Wed, 1 Feb 2023 17:48:50 +0100 Subject: [PATCH] Remove explicit allocator (#3273) --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 4 ---- crates/cli/src/bin/wasm-bindgen.rs | 4 ---- crates/cli/src/bin/wasm2es6js.rs | 4 ---- 3 files changed, 12 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 5ddca003120..067367b9fc5 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -18,10 +18,6 @@ use std::path::PathBuf; use std::thread; use wasm_bindgen_cli_support::Bindgen; -// no need for jemalloc bloat in this binary (and we don't need speed) -#[global_allocator] -static ALLOC: std::alloc::System = std::alloc::System; - mod deno; mod headless; mod node; diff --git a/crates/cli/src/bin/wasm-bindgen.rs b/crates/cli/src/bin/wasm-bindgen.rs index f6e16a4fb8e..e5542af5e27 100644 --- a/crates/cli/src/bin/wasm-bindgen.rs +++ b/crates/cli/src/bin/wasm-bindgen.rs @@ -5,10 +5,6 @@ use std::path::PathBuf; use std::process; use wasm_bindgen_cli_support::{Bindgen, EncodeInto}; -// no need for jemalloc bloat in this binary (and we don't need speed) -#[global_allocator] -static ALLOC: std::alloc::System = std::alloc::System; - const USAGE: &'static str = " Generating JS bindings for a wasm file diff --git a/crates/cli/src/bin/wasm2es6js.rs b/crates/cli/src/bin/wasm2es6js.rs index caa35cf122b..3893858dfc3 100644 --- a/crates/cli/src/bin/wasm2es6js.rs +++ b/crates/cli/src/bin/wasm2es6js.rs @@ -4,10 +4,6 @@ use serde::Deserialize; use std::fs; use std::path::PathBuf; -// no need for jemalloc bloat in this binary (and we don't need speed) -#[global_allocator] -static ALLOC: std::alloc::System = std::alloc::System; - const USAGE: &'static str = " Converts a wasm file to an ES6 JS module