Revert "runtime: add padding to Linux kernel structures"

This reverts commit f0db7eae74.

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>
This commit is contained in:
Michael Pratt 2021-10-04 21:44:08 +00:00
parent d9952ff511
commit 7ee4c16654
11 changed files with 0 additions and 122 deletions

View file

@ -3,8 +3,6 @@
package runtime
import "internal/goarch"
const (
_EINTR = 0x4
_EAGAIN = 0xb
@ -174,11 +172,6 @@ type siginfo struct {
si_code int32
// below here is a union; si_addr is the only field we use
si_addr uint32
// 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 stackt struct {
@ -242,10 +235,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 {