summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/thread_group.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-13 20:22:10 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-13 20:22:10 +0000
commit4ebdcffe2c96a38d20d3e1fad60977d61cb44579 (patch)
tree89c12e7d3a4f47c3dd47fe155d22d9cab14e7b15 /pkg/sentry/kernel/thread_group.go
parent6c6f665ae9e31905c02304090261b50c4328162c (diff)
parent1c0535297067179a822ba2dd9a6fe13a8be5a666 (diff)
Merge release-20200219.0-170-g1c05352 (automated)
Diffstat (limited to 'pkg/sentry/kernel/thread_group.go')
-rw-r--r--pkg/sentry/kernel/thread_group.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/thread_group.go b/pkg/sentry/kernel/thread_group.go
index 268f62e9d..52849f5b3 100644
--- a/pkg/sentry/kernel/thread_group.go
+++ b/pkg/sentry/kernel/thread_group.go
@@ -254,6 +254,13 @@ type ThreadGroup struct {
//
// tty is protected by the signal mutex.
tty *TTY
+
+ // oomScoreAdj is the thread group's OOM score adjustment. This is
+ // currently not used but is maintained for consistency.
+ // TODO(gvisor.dev/issue/1967)
+ //
+ // oomScoreAdj is accessed using atomic memory operations.
+ oomScoreAdj int32
}
// NewThreadGroup returns a new, empty thread group in PID namespace pidns. The