diff options
| author | Konstantinos Andrikopoulos <andrikopoulos@google.com> | 2024-09-09 02:32:19 +0200 |
|---|---|---|
| committer | Konstantinos Andrikopoulos <andrikopoulos@google.com> | 2024-09-09 02:44:43 +0200 |
| commit | ff28977c065762160d35ca81dc85a199ac7d460d (patch) | |
| tree | 5c7a05dd2f14278066b62589e4ed2f9c686e6cf5 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 59cb24dc76eb999390541241cfc45217fe2f6326 (diff) | |
| download | rust-ff28977c065762160d35ca81dc85a199ac7d460d.tar.gz rust-ff28977c065762160d35ca81dc85a199ac7d460d.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
