Skip to content

Commit b80fdc2

Browse files
committed
fix: use jemalloc2
1 parent c679895 commit b80fdc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/providers/ruby/ruby.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func (p *RubyProvider) Build(ctx *generate.GenerateContext, build *generate.Comm
198198
}
199199

200200
func (p *RubyProvider) AddRuntimeDeps(ctx *generate.GenerateContext) {
201-
packages := []string{"libyaml-dev", "libjemalloc-dev"}
201+
packages := []string{"libyaml-dev", "libjemalloc2"}
202202

203203
if p.usesPostgres(ctx) {
204204
packages = append(packages, "libpq-dev")
@@ -280,7 +280,7 @@ func (p *RubyProvider) GetRubyEnvVars(ctx *generate.GenerateContext) map[string]
280280
"GEM_PATH": "/usr/local/bundle",
281281
"GEM_HOME": "/usr/local/bundle",
282282
"MALLOC_ARENA_MAX": "2",
283-
"LD_PRELOAD": "/usr/lib/x86_64-linux-gnu/libjemalloc.so",
283+
"LD_PRELOAD": "libjemalloc.so.2",
284284
}
285285
}
286286

0 commit comments

Comments
 (0)