Revert "Fix chunk size check."
Bug: 21633176
This reverts commit c429191e01e516d97bd501465289a351ef48d63a.
Change-Id: Idbc8dee0e5017c63654b38839bad7cc69619de56
diff --git a/src/chunk.c b/src/chunk.c
index 2e17cb2..7063410 100644
--- a/src/chunk.c
+++ b/src/chunk.c
@@ -130,9 +130,8 @@
node = chunk_first_fit(arena, chunks_szad, chunks_ad,
alloc_size);
}
- /* ANDROID fix. */
- if (node == NULL || extent_node_size_get(node) < size) {
- /* End ANDROID fix. */
+ if (node == NULL || (new_addr != NULL && extent_node_size_get(node) <
+ size)) {
malloc_mutex_unlock(&arena->chunks_mtx);
return (NULL);
}