equal
deleted
inserted
replaced
295 * @param |
295 * @param |
296 * @param |
296 * @param |
297 * @return |
297 * @return |
298 */ |
298 */ |
299 IMPORT_C static void CloseFastAllocator(RAllocator* aDefaultAllocator); |
299 IMPORT_C static void CloseFastAllocator(RAllocator* aDefaultAllocator); |
300 |
|
301 /** |
|
302 * Create fast allocator and switch as default heap. Special case if fast allocator |
|
303 * has to be created from SetupThreadHeap(). |
|
304 * |
|
305 * @since 9.2 |
|
306 * @param |
|
307 * @return |
|
308 */ |
|
309 IMPORT_C static void CreateFastAllocator(); |
|
310 |
|
311 /** |
|
312 * Initialize MemoryManager library. Special case if CreateFastAllocator is |
|
313 * called from SetupThreadHeap(). |
|
314 * |
|
315 * @since 9.2 |
|
316 * @param |
|
317 * @return |
|
318 */ |
|
319 IMPORT_C static void InitFastAllocator(); |
|
320 |
|
321 /** |
|
322 * initialize the OOM handler in the memorypool |
|
323 * @since 9.2 |
|
324 * @param |
|
325 * @param |
|
326 * @return |
|
327 */ |
|
328 IMPORT_C static void InitOOMDialog(); |
|
329 |
|
330 /** |
|
331 * Reset the OOM dialog display flag in the memorypool; we want to pop the OOM dialog once per page, |
|
332 * so we need to clear this when we are either done with the page (it unloads) or when we load a new one, |
|
333 * so that it will display again when we run out of memory |
|
334 * @since 9.2 |
|
335 * @param |
|
336 * @param |
|
337 * @return |
|
338 */ |
|
339 IMPORT_C static void ResetOOMDialogDisplayed(); |
|
340 |
|
341 /** |
|
342 * Dumps the memory logs i.e. heap allocated, heap free, system free, heap size etc to log |
|
343 * file c:\logs\webcore\Memory.log |
|
344 * @since 9.2 |
|
345 * @param |
|
346 * @return |
|
347 */ |
|
348 IMPORT_C static void DumpMemoryLogs(); |
|
349 }; |
300 }; |
350 |
301 |
351 #endif// !_MEMORYMANAGER_H_ |
302 #endif// !_MEMORYMANAGER_H_ |