Changeset 94404 in vbox for trunk/src/libs/openssl-3.0.2/crypto/mem.c
- Timestamp:
- Mar 31, 2022 9:00:36 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150730
- Location:
- trunk/src/libs/openssl-3.0.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.2
- Property svn:mergeinfo
-
old new 13 13 /vendor/openssl/1.1.1k:145841-145843 14 14 /vendor/openssl/3.0.1:150323-150324 15 /vendor/openssl/current:147554-150322 15 /vendor/openssl/3.0.2:150728-150729 16 /vendor/openssl/current:147554-150727
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.2/crypto/mem.c
r94082 r94404 1 1 /* 2 * Copyright 1995-202 0The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 26 26 # include "internal/tsan_assist.h" 27 27 28 # ifdef TSAN_REQUIRES_LOCKING 29 # define INCREMENT(x) /* empty */ 30 # define LOAD(x) 0 31 # else /* TSAN_REQUIRES_LOCKING */ 28 32 static TSAN_QUALIFIER int malloc_count; 29 33 static TSAN_QUALIFIER int realloc_count; 30 34 static TSAN_QUALIFIER int free_count; 31 35 32 # define INCREMENT(x) tsan_counter(&(x)) 36 # define INCREMENT(x) tsan_counter(&(x)) 37 # define LOAD(x) tsan_load(&x) 38 # endif /* TSAN_REQUIRES_LOCKING */ 33 39 34 40 static char *md_failstring; … … 79 85 { 80 86 if (mcount != NULL) 81 *mcount = tsan_load(&malloc_count);87 *mcount = LOAD(malloc_count); 82 88 if (rcount != NULL) 83 *rcount = tsan_load(&realloc_count);89 *rcount = LOAD(realloc_count); 84 90 if (fcount != NULL) 85 *fcount = tsan_load(&free_count);91 *fcount = LOAD(free_count); 86 92 } 87 93
Note:
See TracChangeset
for help on using the changeset viewer.