Ignore:
Timestamp:
Dec 30, 2011, 11:01:18 AM (14 years ago)
Author:
dmik
Message:

kernel32: Increase maximum size of internal shared heap from 2M to 8M.

This heap is used for internal resource representation (internal handle structures
and such) and may be exhausted by a badly written application that has big
resource leaks which will most likely hang or crash the Odin application (since
it generally doesn't check if the allocation returns NULL).

Since the heap space is only committed as needed, this increase should not
affect normal memory usage by Odin applications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/heapshared.cpp

    r21916 r21931  
    2626#include "initterm.h"
    2727
    28 #define PAGE_SIZE               4096
    29 
    3028#define DBG_LOCALLOG    DBG_heapshared
    3129#include "dbglocal.h"
    3230
    33 #define MAX_HEAPSIZE        (2048*1024)
     31//
     32// Global constants (keep it in sync with globaldata.asm!)
     33//
     34#define PAGE_SIZE           4096
     35#define MAX_HEAPSIZE        (8*1024*1024)
    3436#define MAX_HEAPPAGES           (MAX_HEAPSIZE/PAGE_SIZE)
    3537#define INCR_HEAPSIZE           (16*1024)
Note: See TracChangeset for help on using the changeset viewer.