Commit 24cde640 authored by Rosen Penev's avatar Rosen Penev Committed by Facebook Github Bot

JemallocHugePageAllocator: bzero to memset (#1195)

Summary:
bzero is deprecated and can be compile time disabled for uClibc-ng
Pull Request resolved: https://github.com/facebook/folly/pull/1195

Reviewed By: Orvid

Differential Revision: D16451837

Pulled By: yfeldblum

fbshipit-source-id: 929a8e8cd7f8ddb3a904c1b1956a5f8ca115244f
parent fbba622d
......@@ -174,7 +174,7 @@ void* HugePageArena::allocHook(
extent, new_addr, size, alignment, zero, commit, arena_ind);
} else {
if (*zero) {
bzero(res, size);
memset(res, 0, size);
}
*commit = true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment