[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1043467: spinlock_gcc_arm.hpp possibly doesn't take into accout LDREX on arm64



Source: boost1.81
Version: 1.81.0-6
Severity: normal
Tags: upstream
X-Debbugs-Cc: debian-arm@lists.debian.org

Hi there,

Please, correct me if I am wrong, but the conditional here:
https://sources.debian.org/src/boost1.81/1.81.0-6/libs/smart_ptr/include/boost/smart_ptr/detail/spinlock_gcc_arm.hpp/#L21
doesn't take into account that ARM64 also includes the LDREX instruction.

Without BOOST_SP_ARM_HAS_LDREX, the obsolete SWP ends up being used:
https://sources.debian.org/src/boost1.81/1.81.0-6/libs/smart_ptr/include/boost/smart_ptr/detail/spinlock_gcc_arm.hpp/#L69
needing to be software-emulated by the kernel.

Cheers,

 -- Santiago

-- System Information:
Debian Release: trixie/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.0-1-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Attachment: signature.asc
Description: PGP signature


Reply to: