• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 64-bit int not being aligned in 32-bit ARM, causing crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64-bit int not being aligned in 32-bit ARM, causing crash


  • Subject: Re: 64-bit int not being aligned in 32-bit ARM, causing crash
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 11 Mar 2015 09:17:46 -0700


On Mar 11, 2015, at 3:26 AM, Jonas Maebe <email@hidden> wrote:

The compiler will, under normal circumstances, never by itself emit an atomic 64 bit load. My guess is that Jens is passing the address of that field to a function that is hardcoded (possibly using inline assembly) to perform a 64 bit atomic load.

The library I’m using is calling the (intrinsic) function __sync_add_and_fetch().

We worked around it by using an __attribute to force 8-byte alignment for that struct field.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >64-bit int not being aligned in 32-bit ARM, causing crash (From: Jens Alfke <email@hidden>)
 >Re: 64-bit int not being aligned in 32-bit ARM, causing crash (From: Jonas Maebe <email@hidden>)
 >Re: 64-bit int not being aligned in 32-bit ARM, causing crash (From: Roland King <email@hidden>)
 >Re: 64-bit int not being aligned in 32-bit ARM, causing crash (From: Jonas Maebe <email@hidden>)

  • Prev by Date: Re: How to debug and test a quick look generator?
  • Next by Date: Code Signing Problem
  • Previous by thread: Re: 64-bit int not being aligned in 32-bit ARM, causing crash
  • Next by thread: Swift Keyboard Keypress input function needed.
  • Index(es):
    • Date
    • Thread