[PATCH] D121848: [scudo] Remove unused header includes and fix declarations
Dominic Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 18 12:57:55 PDT 2022
ddcc updated this revision to Diff 416584.
ddcc added a comment.
Revert header file removal
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121848/new/
https://reviews.llvm.org/D121848
Files:
compiler-rt/lib/scudo/standalone/checksum.cpp
compiler-rt/lib/scudo/standalone/common.h
compiler-rt/lib/scudo/standalone/secondary.h
compiler-rt/lib/scudo/standalone/wrappers_c.cpp
Index: compiler-rt/lib/scudo/standalone/wrappers_c.cpp
===================================================================
--- compiler-rt/lib/scudo/standalone/wrappers_c.cpp
+++ compiler-rt/lib/scudo/standalone/wrappers_c.cpp
@@ -22,6 +22,8 @@
#define SCUDO_ALLOCATOR Allocator
extern "C" void SCUDO_PREFIX(malloc_postinit)();
+extern scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)>
+ SCUDO_ALLOCATOR;
// Export the static allocator so that the C++ wrappers can access it.
// Technically we could have a completely separated heap for C & C++ but in
Index: compiler-rt/lib/scudo/standalone/secondary.h
===================================================================
--- compiler-rt/lib/scudo/standalone/secondary.h
+++ compiler-rt/lib/scudo/standalone/secondary.h
@@ -445,7 +445,7 @@
}
}
- uptr canCache(uptr Size) { return Cache.canCache(Size); }
+ bool canCache(uptr Size) { return Cache.canCache(Size); }
bool setOption(Option O, sptr Value) { return Cache.setOption(O, Value); }
Index: compiler-rt/lib/scudo/standalone/common.h
===================================================================
--- compiler-rt/lib/scudo/standalone/common.h
+++ compiler-rt/lib/scudo/standalone/common.h
@@ -117,6 +117,7 @@
// Platform specific functions.
extern uptr PageSizeCached;
+uptr getPageSize();
uptr getPageSizeSlow();
inline uptr getPageSizeCached() {
// Bionic uses a hardcoded value.
Index: compiler-rt/lib/scudo/standalone/checksum.cpp
===================================================================
--- compiler-rt/lib/scudo/standalone/checksum.cpp
+++ compiler-rt/lib/scudo/standalone/checksum.cpp
@@ -8,6 +8,7 @@
#include "checksum.h"
#include "atomic_helpers.h"
+#include "chunk.h"
#if defined(__x86_64__) || defined(__i386__)
#include <cpuid.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121848.416584.patch
Type: text/x-patch
Size: 1822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220318/65ec2b36/attachment.bin>
More information about the llvm-commits
mailing list