diff options
| author | Michael Pratt <mpratt@google.com> | 2021-10-04 21:44:08 +0000 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2021-10-04 22:08:53 +0000 |
| commit | 7ee4c1665477c6cf574cb9128deaf9d00906c69f (patch) | |
| tree | 795880e5bb3c130987ba5fef78362b1cc1601bcc /src/runtime/os_linux.go | |
| parent | d9952ff5119d35751d44d5cd66c7164c7bc21ce0 (diff) | |
| download | go-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/os_linux.go')
| -rw-r--r-- | src/runtime/os_linux.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go index d5a5ff763b..06773c2193 100644 --- a/src/runtime/os_linux.go +++ b/src/runtime/os_linux.go @@ -440,18 +440,6 @@ func pipe() (r, w int32, errno int32) func pipe2(flags int32) (r, w int32, errno int32) func setNonblock(fd int32) -const ( - _si_max_size = 128 - _sigev_max_size = 64 -) - -// Assert that the Go definitions of structures exchanged with the kernel are -// the same size as what the kernel defines. -var ( - _ [_si_max_size]struct{} = [unsafe.Sizeof(siginfo{})]struct{}{} - _ [_sigev_max_size]struct{} = [unsafe.Sizeof(sigevent{})]struct{}{} -) - //go:nosplit //go:nowritebarrierrec func setsig(i uint32, fn uintptr) { |
