Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 1999 14:14:00 -0600
From:      Charles Randall <crandall@matchlogic.com>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   RE: Overcommit and calloc()
Message-ID:  <64003B21ECCAD11185C500805F31EC0302D75907@houston.matchlogic.com>

next in thread | raw e-mail | index | archive | help
From: Kelly Yancey [mailto:kbyanc@alcnet.com]
>I have another post on this list which begs the question: if memory given
>to us fro sbrk() is already zeroed, why zero it again if we don't have
>too.... if we make calloc() smarter, we could save come clock cycles.

Because the memory returned from malloc() might be from a previous
malloc()/free() and may be dirty.

Charles


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64003B21ECCAD11185C500805F31EC0302D75907>