Changeset 38181 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Nov 6, 2008, 10:38:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Collector.cpp
r38178 r38181 190 190 // FIXME: tag the region as a JavaScriptCore heap when we get a registered VM tag: <rdar://problem/6054788>. 191 191 vm_map(current_task(), &address, BLOCK_SIZE, BLOCK_OFFSET_MASK, VM_FLAGS_ANYWHERE, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); 192 #elif PLATFORM(SYMBIAN) 193 // no memory map in symbian, need to hack with fastMalloc 194 void* address = fastMalloc(BLOCK_SIZE); 195 memset(reinterpret_cast<void*>(address), 0, BLOCK_SIZE); 192 196 #elif PLATFORM(WIN_OS) 193 197 // windows virtual address granularity is naturally 64k … … 232 236 #if PLATFORM(DARWIN) 233 237 vm_deallocate(current_task(), reinterpret_cast<vm_address_t>(block), BLOCK_SIZE); 238 #elif PLATFORM(SYMBIAN) 239 fastFree(block); 234 240 #elif PLATFORM(WIN_OS) 235 241 VirtualFree(block, 0, MEM_RELEASE);
Note:
See TracChangeset
for help on using the changeset viewer.