Skip to content

Commit 9fc1380

Browse files
committed
Add TraceName to GetSecondaryReleaseOlderThan
1 parent f2529f4 commit 9fc1380

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler-rt/lib/scudo/standalone/secondary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ class MapAllocatorCache {
580580
}
581581

582582
void releaseOlderThan(u64 Time) REQUIRES(Mutex) {
583-
SCUDO_SCOPED_TRACE(GetSecondaryReleaseOlderThan());
583+
SCUDO_SCOPED_TRACE(GetSecondaryReleaseOlderThanTraceName());
584584

585585
if (!LRUEntries.size() || OldestTime == 0 || OldestTime > Time)
586586
return;

compiler-rt/lib/scudo/standalone/tracing.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ static inline const char *GetSecondaryReleaseToOSTraceName(scudo::ReleaseToOS) {
4141
}
4242

4343
// Create a trace name for the call to releaseOlderThan in the secondary.
44-
static inline const char *GetSecondaryReleaseOlderThan() { return nullptr; }
44+
static inline const char *GetSecondaryReleaseOlderThanTraceName() {
45+
return nullptr;
46+
}
4547

4648
#endif
4749

0 commit comments

Comments
 (0)