summaryrefslogtreecommitdiff
path: root/linker/linker_block_allocator.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-02-10 02:32:16 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-10 02:32:16 +0000
commit43801a50b071279c58d8d3b4d06ce26b39e57a4e (patch)
treeed56250a9c8ecbceb414f61e4de0a59e641b7939 /linker/linker_block_allocator.cpp
parent5ac650936f05e4dfebc46b5fba14de5e842b99f5 (diff)
parent8cbe97de7fcd4a1e7ac5957da49cefcf188fdd47 (diff)
Merge "Remove unnecessary memsets in linker allocators"
Diffstat (limited to 'linker/linker_block_allocator.cpp')
-rw-r--r--linker/linker_block_allocator.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/linker/linker_block_allocator.cpp b/linker/linker_block_allocator.cpp
index 23298a473..1211b988a 100644
--- a/linker/linker_block_allocator.cpp
+++ b/linker/linker_block_allocator.cpp
@@ -113,8 +113,6 @@ void LinkerBlockAllocator::create_new_page() {
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, page, PAGE_SIZE, "linker_alloc");
- memset(page, 0, PAGE_SIZE);
-
FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
first_block->next_block = free_block_list_;
first_block->num_free_blocks = (PAGE_SIZE - sizeof(LinkerBlockAllocatorPage*))/block_size_;