about summary refs log tree commit diff homepage
path: root/unittests/KDAlloc/rusage.cpp
diff options
context:
space:
mode:
authorJulian Büning <julian.buening@comsys.rwth-aachen.de>2023-04-01 13:22:38 +0200
committerCristian Cadar <c.cadar@imperial.ac.uk>2023-04-18 13:09:24 +0100
commitadfca64fdbcfd75d42b7a069d27ddbb0228e9eff (patch)
tree72fea41d16a28a10b14305fdf47af4cc3875a51a /unittests/KDAlloc/rusage.cpp
parent02b52541c5e8262e7f7a909d90fb898399d822bd (diff)
downloadklee-adfca64fdbcfd75d42b7a069d27ddbb0228e9eff.tar.gz
change some obsolete KDAlloc comments
- mappings were only shared in a former version of KDAlloc
- `AllocationFactory(std::size_t, std::uint32_t)`'s second parameter is
  used for quarantine size, not the location of the mapping
Diffstat (limited to 'unittests/KDAlloc/rusage.cpp')
-rw-r--r--unittests/KDAlloc/rusage.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/unittests/KDAlloc/rusage.cpp b/unittests/KDAlloc/rusage.cpp
index 453c5e5d..2a893d7d 100644
--- a/unittests/KDAlloc/rusage.cpp
+++ b/unittests/KDAlloc/rusage.cpp
@@ -35,10 +35,8 @@ std::size_t write_to_allocations(std::vector<void *> &allocations) {
 }
 
 TEST(KDAllocTest, Rusage) {
-  // initialize a factory and an associated allocator (using the location "0"
-  // gives an OS-assigned location)
-  klee::kdalloc::AllocatorFactory factory(static_cast<std::size_t>(1) << 30,
-                                          0); // 1 GB
+  // initialize a factory and an associated allocator (1 GiB and no quarantine)
+  klee::kdalloc::AllocatorFactory factory(static_cast<std::size_t>(1) << 30, 0);
   klee::kdalloc::Allocator allocator = factory.makeAllocator();
 
   std::vector<void *> allocations;