[PATCH] D46397: [sanitizer] Remove unused 32-bit allocator TransferBatch parameter

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 3 12:17:38 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT331477: [sanitizer] Remove unused 32-bit allocator TransferBatch parameter (authored by cryptoad, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D46397?vs=145048&id=145068#toc

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D46397

Files:
  lib/sanitizer_common/sanitizer_allocator_local_cache.h
  lib/sanitizer_common/sanitizer_allocator_primary32.h


Index: lib/sanitizer_common/sanitizer_allocator_primary32.h
===================================================================
--- lib/sanitizer_common/sanitizer_allocator_primary32.h
+++ lib/sanitizer_common/sanitizer_allocator_primary32.h
@@ -63,7 +63,7 @@
 
   struct TransferBatch {
     static const uptr kMaxNumCached = SizeClassMap::kMaxNumCachedHint - 2;
-    void SetFromArray(uptr region_beg_unused, void *batch[], uptr count) {
+    void SetFromArray(void *batch[], uptr count) {
       count_ = count;
       CHECK_LE(count_, kMaxNumCached);
       for (uptr i = 0; i < count; i++)
Index: lib/sanitizer_common/sanitizer_allocator_local_cache.h
===================================================================
--- lib/sanitizer_common/sanitizer_allocator_local_cache.h
+++ lib/sanitizer_common/sanitizer_allocator_local_cache.h
@@ -262,8 +262,7 @@
     // TODO(alekseys): Figure out how to do it without allocating a new batch.
     if (UNLIKELY(!b))
       DieOnFailure::OnOOM();
-    b->SetFromArray(allocator->GetRegionBeginBySizeClass(class_id),
-                    &c->batch[first_idx_to_drain], count);
+    b->SetFromArray(&c->batch[first_idx_to_drain], count);
     c->count -= count;
     allocator->DeallocateBatch(&stats_, class_id, b);
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46397.145068.patch
Type: text/x-patch
Size: 1269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180503/daa0f525/attachment.bin>


More information about the llvm-commits mailing list