Microsoft KB Archive/36323

Segmentation Test Versus GlobalCompact(-1)

PSS ID Number: Q36323 Article last modified on 11-05-1993

2.03 2.10 3.00 MS-DOS

= SUMMARY =

Although a Segmentation Test within Heapwalk does a GlobalCompact, it is not the same as performing a GlobalCompact from within the application’s code. Performing a GlobalCompact(-1) from within the application’s code will remove all discardable segments except the currently executing code segment. Your code segment is locked in memory, and even if it is a discardable segment, it will not be discarded. When the Segmentation Test performs a GC(-1), it has control of the processor. Your code segment is no longer locked in memory, and if it is a discardable segment, it will be discarded.

Additional reference words: 2.03 2.1 3.0 KBCategory: KBSubcategory: KrMmGlobalmem Copyright Microsoft Corporation 1993.