VirtualBox

Changeset 108718 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Mar 24, 2025 2:56:08 PM (5 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168135
Message:

Runtime/testcase/tstRTInlineAsm.cpp: Enforce alignment of s_u128 at a 16 byte boundary as at least some versions of clang fail to do so automatically causing a crash in the testcase on darwin.amd64 at least

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTInlineAsm.cpp

    r108654 r108718  
    31093109    static int64_t  volatile s_i64;
    31103110#if defined(RTASM_HAVE_CMP_WRITE_U128) || defined(RTASM_HAVE_CMP_XCHG_U128)
    3111     static RTUINT128U volatile s_u128;
     3111     /* Some clang versions fail to align it automatically causing a crash in ASMAtomicCmpXchgU128v2() called through ASMAtomicUoReadU128() on darwin.amd64 */
     3112    RT_ALIGNAS_VAR(16) static RTUINT128U volatile s_u128;
    31123113#endif
    31133114    static uint8_t  s_u8Old;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette