From 3cffc8c42778e77cd35dfce79466fab846a34781 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Wed, 4 Oct 2017 15:52:57 -0700 Subject: [PATCH] Revert "Poison hashtable buffers." This reverts commit c866486b99095769ffefe5cc2bc702f57e30cc4b. --- components/hashglobe/src/table.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/hashglobe/src/table.rs b/components/hashglobe/src/table.rs index 71212ccf6ab..45dcb2673fa 100644 --- a/components/hashglobe/src/table.rs +++ b/components/hashglobe/src/table.rs @@ -777,16 +777,13 @@ impl RawTable { // FORK NOTE: Uses alloc shim instead of Heap.alloc - let buffer: *mut u8 = alloc(size, alignment); + let buffer = alloc(size, alignment); if buffer.is_null() { return Err(FailedAllocationError { reason: "out of memory when allocating RawTable" }); } - // FORK NOTE: poison the entire buffer rather than leaving it uninitialized. - ptr::write_bytes(buffer, 0xe7, size); - let hashes = buffer.offset(hash_offset as isize) as *mut HashUint; Ok(RawTable {