This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Does new operator call malloc() to apply memory ?
- From: Florian Weimer <fweimer at redhat dot com>
- To: Hatt Tom <net dot study dot sea at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 19 Aug 2013 11:45:56 +0200
- Subject: Re: Does new operator call malloc() to apply memory ?
- References: <CAHvbk5NiVDGXFdUNrjwPw_Vzq0nD5V+Dc_RE-Kouhd2B9uhjUg at mail dot gmail dot com>
On 08/17/2013 02:02 PM, Hatt Tom wrote:
Does new operator call malloc() to apply memory ?
Yes, on typical systems. But there might be variants of libstdc++ which
don't do this.
Is it successive for the memory rang returnedd allocated by new ?
No, not in general.
--
Florian Weimer / Red Hat Product Security Team