From f673e0b62273caf5f3149539a058d72da8900e76 Mon Sep 17 00:00:00 2001 From: otto <> Date: Sun, 12 Feb 2017 10:46:09 +0000 Subject: malloc does not *need* to return page-aligned objects for size >= a page. This is not required by any standard and other malloc implementation do not document (or implement) this. ok deraadt@ --- src/lib/libc/stdlib/malloc.3 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index 1abbbdbc7a..1f80c3529e 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 @@ -30,9 +30,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.100 2016/10/20 08:03:15 jmc Exp $ +.\" $OpenBSD: malloc.3,v 1.101 2017/02/12 10:46:09 otto Exp $ .\" -.Dd $Mdocdate: October 20 2016 $ +.Dd $Mdocdate: February 12 2017 $ .Dt MALLOC 3 .Os .Sh NAME @@ -66,9 +66,6 @@ maintains multiple lists of free blocks according to size, allocating space from the appropriate list. The allocated space is suitably aligned (after possible pointer coercion) for storage of any type of object. -If the space is of -.Em pagesize -or larger, the memory returned will be page-aligned. .Pp The .Fn calloc -- cgit v1.2.3-55-g6feb