Skip to content

Commit c4d2424

Browse files
authored
memory: new submodules MemArbitrator & ResourcePool (pingcap#60597)
ref pingcap#58194
1 parent 01bfccb commit c4d2424

File tree

6 files changed

+7669
-0
lines changed

6 files changed

+7669
-0
lines changed

pkg/util/memory/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ go_library(
44
name = "memory",
55
srcs = [
66
"action.go",
7+
"arbitrator.go",
78
"meminfo.go",
89
"memstats.go",
10+
"pool.go",
911
"tracker.go",
12+
"utils.go",
1013
],
1114
importpath = "github.com/pingcap/tidb/pkg/util/memory",
1215
visibility = ["//visibility:public"],
@@ -30,8 +33,10 @@ go_test(
3033
name = "memory_test",
3134
timeout = "short",
3235
srcs = [
36+
"arbitrator_test.go",
3337
"bench_test.go",
3438
"main_test.go",
39+
"pool_test.go",
3540
"tracker_test.go",
3641
],
3742
embed = [":memory"],
@@ -42,5 +47,6 @@ go_test(
4247
"//pkg/testkit/testsetup",
4348
"@com_github_stretchr_testify//require",
4449
"@org_uber_go_goleak//:goleak",
50+
"@org_uber_go_zap//:zap",
4551
],
4652
)

0 commit comments

Comments
 (0)