aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_linux_amd64.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2021-10-04 21:44:08 +0000
committerMichael Pratt <mpratt@google.com>2021-10-04 22:08:53 +0000
commit7ee4c1665477c6cf574cb9128deaf9d00906c69f (patch)
tree795880e5bb3c130987ba5fef78362b1cc1601bcc /src/runtime/defs_linux_amd64.go
parentd9952ff5119d35751d44d5cd66c7164c7bc21ce0 (diff)
downloadgo-7ee4c1665477c6cf574cb9128deaf9d00906c69f.tar.xz
Revert "runtime: add padding to Linux kernel structures"
This reverts commit f0db7eae74ea235e9fbc2598252bfd46c1cc5510. Reason for revert: Breaks linux-386 tests Change-Id: Ia51fbf97460ab52920b67d6db6177ac2d6b0058e Reviewed-on: https://go-review.googlesource.com/c/go/+/353432 Trust: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/runtime/defs_linux_amd64.go')
-rw-r--r--src/runtime/defs_linux_amd64.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/runtime/defs_linux_amd64.go b/src/runtime/defs_linux_amd64.go
index 29dabe08dd..6afb67f77f 100644
--- a/src/runtime/defs_linux_amd64.go
+++ b/src/runtime/defs_linux_amd64.go
@@ -3,8 +3,6 @@
package runtime
-import "internal/goarch"
-
const (
_EINTR = 0x4
_EAGAIN = 0xb
@@ -136,11 +134,6 @@ type siginfo struct {
si_code int32
// below here is a union; si_addr is the only field we use
si_addr uint64
-
- // Pad struct to the max size in the kernel. Account for the 3 32-bit
- // fields, the alignment to this architecture's pointer size, and the final
- // pointer-length field.
- _ [_si_max_size - (3*4 + (1-4/goarch.PtrSize)*4 + 1*goarch.PtrSize)]byte
}
type itimerspec struct {
@@ -159,10 +152,6 @@ type sigevent struct {
notify int32
// below here is a union; sigev_notify_thread_id is the only field we use
sigev_notify_thread_id int32
-
- // Pad struct to the max size in the kernel. Account for the pointer-length
- // field and the 3 32-bit fields.
- _ [_sigev_max_size - (1*goarch.PtrSize + 3*4)]byte
}
type epollevent struct {