Browse code

atomic: patch 64bit alignment on 32bit systems

causes panic on armv7

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit af2e82d054a2276e5ff76fd3fb90915cad5a0a55)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Tonis Tiigi authored on 2019/07/17 08:57:38
Showing 1 changed files
... ...
@@ -828,9 +828,9 @@ type resolverCache struct {
828 828
 }
829 829
 
830 830
 type cachedResolver struct {
831
+	counter int64 // needs to be 64bit aligned for 32bit systems
831 832
 	timeout time.Time
832 833
 	remotes.Resolver
833
-	counter int64
834 834
 }
835 835
 
836 836
 func (cr *cachedResolver) Resolve(ctx context.Context, ref string) (name string, desc ocispec.Descriptor, err error) {