Skip to content

Commit ca17a31

Browse files
David Tolnayfacebook-github-bot
authored andcommitted
Update regex and globset to pull in memory usage fixes
Summary: BurntSushi has fixed a memory usage regression introduced by regex 1.9 which caused Buck to allocate and retain significantly more memory when using moderately sized `buck2_common::ignores::ignore_set::IgnoreSet` objects concurrently from many threads. - Bug report: **[rust-lang/regex#1059](rust-lang/regex#1059) *"1.9 memory usage: globset-generated RegexSet allocates and retains 48× more memory (600MB) vs regex 1.8"*** - Globset fix: **[BurntSushi/ripgrep#25770](https://github.com/BurntSushi/ripgrep/pull/25770) *"globset: use non-capture groups in regex transform"*** - Regex fix: **[rust-lang/regex#1062](rust-lang/regex#1062) *"fix memory usage regression for RegexSet with capture groups"*** Reviewed By: zertosh Differential Revision: D48095372 fbshipit-source-id: ec11c2bcaccbd26354d6d0a0398000134eaf3681
1 parent 6ab52f5 commit ca17a31

File tree

29 files changed

+30
-30
lines changed

29 files changed

+30
-30
lines changed

eden/fs/cli_rs/edenfs-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fbthrift_socket = { version = "0.1.0", git = "https://github.com/facebookexperim
2121
futures = { version = "0.3.28", features = ["async-await", "compat"] }
2222
once_cell = "1.12"
2323
pathdiff = "0.2"
24-
regex = "1.6.0"
24+
regex = "1.9.2"
2525
serde = { version = "1.0.176", features = ["derive", "rc"] }
2626
serde_json = { version = "1.0.100", features = ["float_roundtrip", "unbounded_depth"] }
2727
shlex = "1.0"

eden/mononoke/admin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ phases = { version = "0.1.0", path = "../phases" }
6565
prefixblob = { version = "0.1.0", path = "../blobstore/prefixblob" }
6666
pushrebase = { version = "0.1.0", path = "../pushrebase" }
6767
redactedblobstore = { version = "0.1.0", path = "../blobstore/redactedblobstore" }
68-
regex = "1.6.0"
68+
regex = "1.9.2"
6969
repo_blobstore = { version = "0.1.0", path = "../blobrepo/repo_blobstore" }
7070
repo_derived_data = { version = "0.1.0", path = "../repo_attributes/repo_derived_data" }
7171
repo_factory = { version = "0.1.0", path = "../repo_factory" }

eden/mononoke/cmdlib/mononoke_app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ observability = { version = "0.1.0", path = "../../observability" }
4141
permission_checker = { version = "0.1.0", path = "../../permission_checker" }
4242
prefixblob = { version = "0.1.0", path = "../../blobstore/prefixblob" }
4343
redactedblobstore = { version = "0.1.0", path = "../../blobstore/redactedblobstore" }
44-
regex = "1.6.0"
44+
regex = "1.9.2"
4545
rendezvous = { version = "0.1.0", path = "../../common/rendezvous" }
4646
repo_factory = { version = "0.1.0", path = "../../repo_factory" }
4747
running = { version = "0.1.0", path = "../../common/running" }

eden/mononoke/commit_rewriting/megarepo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
4848
movers = { version = "0.1.0", path = "../movers" }
4949
phases = { version = "0.1.0", path = "../../phases" }
5050
pushrebase = { version = "0.1.0", path = "../../pushrebase" }
51-
regex = "1.6.0"
51+
regex = "1.9.2"
5252
repo_blobstore = { version = "0.1.0", path = "../../blobrepo/repo_blobstore" }
5353
repo_derived_data = { version = "0.1.0", path = "../../repo_attributes/repo_derived_data" }
5454
repo_identity = { version = "0.1.0", path = "../../repo_attributes/repo_identity" }

eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mononoke_api_types = { version = "0.1.0", path = "../../mononoke_api/types" }
3535
mononoke_hg_sync_job_helper_lib = { version = "0.1.0", path = "../../mononoke_hg_sync_job" }
3636
mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
3737
mutable_counters = { version = "0.1.0", path = "../../mutable_counters" }
38-
regex = "1.6.0"
38+
regex = "1.9.2"
3939
repo_blobstore = { version = "0.1.0", path = "../../blobrepo/repo_blobstore" }
4040
repo_derived_data = { version = "0.1.0", path = "../../repo_attributes/repo_derived_data" }
4141
repo_identity = { version = "0.1.0", path = "../../repo_attributes/repo_identity" }

eden/mononoke/common/copy_utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fsnodes = { version = "0.1.0", path = "../../derived_data/fsnodes" }
1717
futures = { version = "0.3.28", features = ["async-await", "compat"] }
1818
manifest = { version = "0.1.0", path = "../../manifest" }
1919
mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
20-
regex = "1.6.0"
20+
regex = "1.9.2"
2121
repo_blobstore = { version = "0.1.0", path = "../../blobrepo/repo_blobstore" }
2222
repo_identity = { version = "0.1.0", path = "../../repo_attributes/repo_identity" }
2323
slog = { version = "2.7", features = ["max_level_trace", "nested-values"] }

eden/mononoke/features/repo_update_logger/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
2525
once_cell = "1.12"
2626
permission_checker = { version = "0.1.0", path = "../../permission_checker" }
2727
phases = { version = "0.1.0", path = "../../phases" }
28-
regex = "1.6.0"
28+
regex = "1.9.2"
2929
repo_blobstore = { version = "0.1.0", path = "../../blobrepo/repo_blobstore" }
3030
repo_identity = { version = "0.1.0", path = "../../repo_attributes/repo_identity" }
3131
serde = { version = "1.0.176", features = ["derive", "rc"] }

eden/mononoke/git/git_types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ gix-object = "0.33"
2929
manifest = { version = "0.1.0", path = "../../manifest" }
3030
megarepo_error = { version = "0.1.0", path = "../../megarepo_api/megarepo_error" }
3131
mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
32-
regex = "1.6.0"
32+
regex = "1.9.2"
3333
sha1 = "0.10.5"
3434
thiserror = "1.0.43"
3535

eden/mononoke/hooks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mercurial_types = { version = "0.1.0", path = "../mercurial/types" }
3737
metaconfig_types = { version = "0.1.0", path = "../metaconfig/types" }
3838
mononoke_types = { version = "0.1.0", path = "../mononoke_types" }
3939
permission_checker = { version = "0.1.0", path = "../permission_checker" }
40-
regex = "1.6.0"
40+
regex = "1.9.2"
4141
scuba = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" }
4242
scuba_ext = { version = "0.1.0", path = "../common/scuba_ext" }
4343
serde = { version = "1.0.176", features = ["derive", "rc"] }

eden/mononoke/lfs_server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ qps = { version = "0.1.0", path = "../server/qps" }
4747
rand = { version = "0.8", features = ["small_rng"] }
4848
rate_limiting = { version = "0.1.0", path = "../rate_limiting" }
4949
redactedblobstore = { version = "0.1.0", path = "../blobstore/redactedblobstore" }
50-
regex = "1.6.0"
50+
regex = "1.9.2"
5151
repo_authorization = { version = "0.1.0", path = "../repo_authorization" }
5252
repo_blobstore = { version = "0.1.0", path = "../blobrepo/repo_blobstore" }
5353
repo_identity = { version = "0.1.0", path = "../repo_attributes/repo_identity" }

0 commit comments

Comments
 (0)