Ignore:
Timestamp:
Jan 6, 2009, 11:41:33 PM (16 years ago)
Author:
[email protected]
Message:

<rdar://problem/6040850> JavaScript register file should use VirtualAlloc on Windows

Reviewed by Gavin Barraclough.

Fairly simple, just reserve 4Mb of address space for the
register file, and then commit one section at a time. We
don't release committed memory as we drop back, but then
mac doesn't either so this probably not too much of a
problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/RegisterFile.cpp

    r38520 r39673  
    3737    munmap(m_buffer, ((m_max - m_start) + m_maxGlobals) * sizeof(Register));
    3838#elif HAVE(VIRTUALALLOC)
    39     // FIXME: Use VirtualFree.
    40     fastFree(m_buffer);
     39    VirtualFree(m_buffer, 0, MEM_RELEASE);
    4140#else
    4241    #error "Don't know how to release virtual memory on this platform."
Note: See TracChangeset for help on using the changeset viewer.