Skip to content

Commit

Permalink
Remove explicit allocator (#3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslihotzki authored Feb 1, 2023
1 parent 1f3c76b commit 995adac
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions crates/cli/src/bin/wasm-bindgen-test-runner/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions crates/cli/src/bin/wasm-bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions crates/cli/src/bin/wasm2es6js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 995adac

Please sign in to comment.