mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
libct: remove deprecated MPOL_* constants
These were inadvertently added to our exported APIs by commit
eeda7bdf80cca ("Add memory policy support"). We couldn't remove them
from runc 1.4.x, but we deprecated them in commit 3741f9186d
("libct/configs: mark MPOL_* constants as deprecated") and marked them
for removal in runc 1.5. Users should never have used these in the first
place.
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
+2
-1
@@ -27,7 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- `libcontainer/configs.Thawed`
|
||||
- `libcontainer/configs.NewWeightDevice`
|
||||
- `libcontainer/configs.NewThrottleDevice`
|
||||
- `libcontainer/configs.HookList.RunHooks` (#5141)
|
||||
- `libcontainer/configs.HookList.RunHooks`. (#5141)
|
||||
- `libcontainer/configs.MPOL_*` (#5414)
|
||||
|
||||
## [1.4.0] - 2025-11-27
|
||||
|
||||
|
||||
@@ -2,25 +2,6 @@ package configs
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
// Memory policy modes and flags as defined in /usr/include/linux/mempolicy.h
|
||||
//
|
||||
// Deprecated: use constants from [unix] instead.
|
||||
//
|
||||
//nolint:revive,staticcheck,nolintlint // ignore ALL_CAPS errors in consts from numaif.h, will match unix.* in the future
|
||||
const (
|
||||
MPOL_DEFAULT = unix.MPOL_DEFAULT
|
||||
MPOL_PREFERRED = unix.MPOL_PREFERRED
|
||||
MPOL_BIND = unix.MPOL_BIND
|
||||
MPOL_INTERLEAVE = unix.MPOL_INTERLEAVE
|
||||
MPOL_LOCAL = unix.MPOL_LOCAL
|
||||
MPOL_PREFERRED_MANY = unix.MPOL_PREFERRED_MANY
|
||||
MPOL_WEIGHTED_INTERLEAVE = unix.MPOL_WEIGHTED_INTERLEAVE
|
||||
|
||||
MPOL_F_STATIC_NODES = unix.MPOL_F_STATIC_NODES
|
||||
MPOL_F_RELATIVE_NODES = unix.MPOL_F_RELATIVE_NODES
|
||||
MPOL_F_NUMA_BALANCING = unix.MPOL_F_NUMA_BALANCING
|
||||
)
|
||||
|
||||
// LinuxMemoryPolicy contains memory policy configuration.
|
||||
type LinuxMemoryPolicy struct {
|
||||
// Mode specifies memory policy mode without mode flags. See
|
||||
|
||||
Reference in New Issue
Block a user