mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
The Windows compilers appear to align JOBOBJECT_BASIC_LIMIT_INFORMATION to an 8-byte boundary, which on 32-bit systems means adding 32 bits of padding. Unfortunately we can't always add a padding field, because no padding is required on a 64-bit system. So use different versions of the struct for different targets. Fixes golang/go#41001 Change-Id: I38d14edfd3f3a80da22825455f20e1f7de136638 Reviewed-on: https://go-review.googlesource.com/c/sys/+/251197 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Marc-Antoine Ruel <maruel@google.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>