new invokes VirtualAlloc

G

George2

Hello everyone,


On Windows, when we allocate large amount of memory, new will call
VirtualAlloc directly, other than call HeapAlloc then through
HeapAlloc call VirtualAlloc indirectly?

Anyone to clarify this?


thanks in advance,
George
 
S

spaglia

Hello everyone,

On Windows, when we allocate large amount of memory, new will call
VirtualAlloc directly, other than call HeapAlloc then through
HeapAlloc call VirtualAlloc indirectly?

Anyone to clarify this?

thanks in advance,
George

It's hard to find a question in your post but I think what you are
asking about is implementation specific behavior. In other words,
compiler/library specific. Why do you need to know? Performance?
Failure?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top