summaryrefslogtreecommitdiff
path: root/linker/linker_block_allocator.cpp
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2017-02-09 15:53:54 -0800
committerDimitry Ivanov <dimitry@google.com>2017-02-09 15:53:54 -0800
commit8cbe97de7fcd4a1e7ac5957da49cefcf188fdd47 (patch)
treeb2719800cc25e8fdb2c1c75964eb525915366467 /linker/linker_block_allocator.cpp
parent2bfb8c9180603bac97dca2d8e359f71bb11f7126 (diff)
Remove unnecessary memsets in linker allocators
Test: linker-unit-tests Test: bionic-unit-tests --gtest_filter=dl*:Dl* Change-Id: I96f983dba77c9cb5698a9eb2e51b33bc128c6dd7
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_;