mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-10-31 03:29:01 +08:00 
			
		
		
		
	mdbx: use attribute(tls_model(local-dynamic)) as workaround for CLANG bug.
				
					
				
			This commit is contained in:
		| @@ -1164,7 +1164,12 @@ static __inline uint64_t rthc_signature(const void *addr, uint8_t kind) { | ||||
|  | ||||
| #define MDBX_THREAD_RTHC_REGISTERED(addr) rthc_signature(addr, 0x0D) | ||||
| #define MDBX_THREAD_RTHC_COUNTED(addr) rthc_signature(addr, 0xC0) | ||||
| static __thread uint64_t rthc_thread_state; | ||||
| static __thread uint64_t rthc_thread_state | ||||
| #if __has_attribute(tls_model) &&                                              \ | ||||
|     (defined(__PIC__) || defined(__pic__) || MDBX_BUILD_SHARED_LIBRARY) | ||||
|     __attribute__((tls_model("local-dynamic"))) | ||||
| #endif | ||||
|     ; | ||||
|  | ||||
| #if defined(__APPLE__) && defined(__SANITIZE_ADDRESS__) &&                     \ | ||||
|     !defined(MDBX_ATTRIBUTE_NO_SANITIZE_ADDRESS) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user