source: trunk/src/kernel32/globaldata.asm@ 22014

Last change on this file since 22014 was 21931, checked in by dmik, 14 years ago

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.

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1;; @file
2; Global DLL data for KERNEL32.DLL.
3;
4; Note: sizes of data variables must be kept in sync with their C declarations!
5;
6
7.386
8 NAME globaldata
9
10SHARED_DGROUP GROUP _GLOBALDATA
11
12_GLOBALDATA SEGMENT DWORD PUBLIC USE32 'DATA'
13
14;
15; heapshared.cpp:
16;
17
18 PUBLIC _sharedHeap
19 PUBLIC _pSharedMem
20 PUBLIC _pageBitmap
21 PUBLIC _refCount
22
23PAGE_SIZE = 4096
24MAX_HEAPSIZE = (8*1024*1024)
25MAX_HEAPPAGES = (MAX_HEAPSIZE/PAGE_SIZE)
26
27; extern Heap_t sharedHeap; // = 0
28_sharedHeap DD 0
29; extern PVOID pSharedMem; // = NULL
30_pSharedMem DD 0
31; extern BYTE pageBitmap[MAX_HEAPPAGES]; // = {0}
32_pageBitmap DB MAX_HEAPPAGES DUP (0)
33; extern ULONG refCount; // = 0;
34_refCount DD 0
35
36;
37; mmap.h/mmap.cpp:
38;
39 PUBLIC _globalmapcritsect
40 PUBLIC __ZN11Win32MemMap7memmapsE
41
42; extern CRITICAL_SECTION_OS2 globalmapcritsect; // = {0}
43_globalmapcritsect DD 6 DUP (0)
44; /*static*/ Win32MemMap *Win32MemMap::memmaps; // = NULL
45__ZN11Win32MemMap7memmapsE DD 0
46
47_GLOBALDATA ENDS
48
49 END
50
Note: See TracBrowser for help on using the repository browser.