Skip to content

Commit

Permalink
fix perf bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 14, 2024
1 parent 0be7c20 commit f2c22f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_allocator/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl SwcAlloc {
&self,
f: impl FnOnce(&dyn allocator_api2::alloc::Allocator, bool) -> T,
) -> T {
if ALLOC.is_set() {
if self.is_arena_mode {
ALLOC.with(|a| {
//
f(&&**a as &dyn allocator_api2::alloc::Allocator, true)
Expand Down

0 comments on commit f2c22f0

Please sign in to comment.