[llvm-commits] [compiler-rt] r152617 - /compiler-rt/trunk/lib/asan/asan_allocator.cc
Alexey Samsonov
samsonov at google.com
Mon Mar 12 23:46:32 PDT 2012
Author: samsonov
Date: Tue Mar 13 01:46:32 2012
New Revision: 152617
URL: http://llvm.org/viewvc/llvm-project?rev=152617&view=rev
Log:
AddressSanitizer: fix a couple of typos
Modified:
compiler-rt/trunk/lib/asan/asan_allocator.cc
Modified: compiler-rt/trunk/lib/asan/asan_allocator.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_allocator.cc?rev=152617&r1=152616&r2=152617&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_allocator.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_allocator.cc Tue Mar 13 01:46:32 2012
@@ -412,11 +412,11 @@
PageGroup *FindPageGroupUnlocked(uintptr_t addr) {
int n = n_page_groups_;
// If the page groups are not sorted yet, sort them.
- if (n_sorterd_page_groups < n) {
+ if (n_sorted_page_groups_ < n) {
SortArray((uintptr_t*)page_groups_, n);
- n_sorterd_page_groups = n;
+ n_sorted_page_groups_ = n;
}
- // Binray search over the page groups.
+ // Binary search over the page groups.
int beg = 0, end = n;
while (beg < end) {
int med = (beg + end) / 2;
@@ -563,7 +563,7 @@
PageGroup *page_groups_[kMaxAvailableRam / kMinMmapSize];
int n_page_groups_; // atomic
- int n_sorterd_page_groups;
+ int n_sorted_page_groups_;
};
static MallocInfo malloc_info(LINKER_INITIALIZED);
More information about the llvm-commits
mailing list