about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-09 16:45:20 +0000
committerbors <bors@rust-lang.org>2024-09-09 16:45:20 +0000
commit0aa3fd41f85d3ad9e2b86c09dc80c89bd6245ee9 (patch)
tree514c2156aed5bcef129f72216c0bdd52903ef992 /compiler/rustc_codegen_llvm/src
parent797ddd279d8d97ee4371c70d479cff88ad3e8402 (diff)
parentff28977c065762160d35ca81dc85a199ac7d460d (diff)
downloadrust-0aa3fd41f85d3ad9e2b86c09dc80c89bd6245ee9.tar.gz
rust-0aa3fd41f85d3ad9e2b86c09dc80c89bd6245ee9.zip
Auto merge of #3871 - Mandragorian:detect_rwlock_move, r=RalfJung
detect when pthread_rwlock_t is moved

For some implementations of pthreads, the address of pthread_rwlock_t (or its fields) is used to identify the lock. That means that if the contents of a pthread_rwlock_t are moved in memory, effectively a new lock object is created, which is completely independted from the original. Thus we want to detect when when such objects are moved and show an error.

see also #3749 for more context
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions