Project

General

Profile

Actions

Bug #649

closed

clang build fails in atomic spinlock/mutex failback code

Added by Victor Julien almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

clang doesn't use atomics in our build, thus falls back to spinlocks. Compilation fails.

Actions #1

Updated by Victor Julien almost 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Fixed by:

commit 389c48f222f453ae63f5ed7bd177d16ac621c751
Author: Victor Julien <victor@inliniac.net>
Date:   Tue Nov 27 16:25:59 2012 +0100

    Fix detection of spin locks supported. Clean up how we handle falling back to mutex if spinlocks aren't supported.

In addition, atomics are now also used where available:

commit 467f28e98eb4e6540749b1754aeea88a41a06759
Author: Victor Julien <victor@inliniac.net>
Date:   Tue Nov 27 18:55:28 2012 +0100

    clang: make atomics work

Actions

Also available in: Atom PDF