diff options
author | Dimitry Ivanov <dimitry@google.com> | 2017-02-09 15:53:54 -0800 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2017-02-09 15:53:54 -0800 |
commit | 8cbe97de7fcd4a1e7ac5957da49cefcf188fdd47 (patch) | |
tree | b2719800cc25e8fdb2c1c75964eb525915366467 /linker/linker_block_allocator.cpp | |
parent | 2bfb8c9180603bac97dca2d8e359f71bb11f7126 (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.cpp | 2 |
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_; |