new invokes VirtualAlloc

Discussion in 'C++' started by George2, Jan 28, 2008.

  1. George2

    George2 Guest

    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
    George2, Jan 28, 2008
    #1
    1. Advertising

  2. George2

    spaglia Guest

    On Jan 27, 7:00 pm, George2 <> wrote:
    > 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?
    spaglia, Jan 28, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Don
    Replies:
    0
    Views:
    4,345
  2. Mich
    Replies:
    5
    Views:
    538
  3. Replies:
    4
    Views:
    415
    Salt_Peter
    Oct 12, 2006
  4. Oliver Bleckmann
    Replies:
    4
    Views:
    304
    Gavin Deane
    Dec 1, 2006
  5. George2

    new and VirtualAlloc

    George2, Jan 13, 2008, in forum: C++
    Replies:
    3
    Views:
    1,713
    Jerry Coffin
    Jan 13, 2008
Loading...

Share This Page