Changeset 47959 in webkit for trunk/JavaScriptCore/interpreter
- Timestamp:
- Sep 2, 2009, 2:49:31 AM (16 years ago)
- Location:
- trunk/JavaScriptCore/interpreter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/RegisterFile.cpp
r43886 r47959 39 39 VirtualFree(m_buffer, 0, MEM_RELEASE); 40 40 #else 41 #error "Don't know how to release virtual memory on this platform."41 fastFree(m_buffer); 42 42 #endif 43 43 } -
trunk/JavaScriptCore/interpreter/RegisterFile.h
r47022 r47959 205 205 } 206 206 m_commitEnd = reinterpret_cast<Register*>(reinterpret_cast<char*>(m_buffer) + committedSize); 207 #else 208 #error "Don't know how to reserve virtual memory on this platform." 207 #else 208 /* 209 * If neither MMAP nor VIRTUALALLOC are available - use fastMalloc instead. 210 * 211 * Please note that this is the fallback case, which is non-optimal. 212 * If any possible, the platform should provide for a better memory 213 * allocation mechanism that allows for "lazy commit" or dynamic 214 * pre-allocation, similar to mmap or VirtualAlloc, to avoid waste of memory. 215 */ 216 m_buffer = static_cast<Register*>(fastMalloc(bufferLength)); 209 217 #endif 210 218 m_start = m_buffer + maxGlobals;
Note:
See TracChangeset
for help on using the changeset viewer.