COR_SEGMENT 結構COR_SEGMENT Structure

包含 Managed 堆積中記憶體區域的相關資訊。Contains information about a region of memory in the managed heap.

語法Syntax

typedef struct _COR_SEGMENT {  
    CORDB_ADDRESS start;
    CORDB_ADDRESS end;
    CorDebugGenerationTypes gen;
    ULONG heap;
} COR_SEGMENT;  

成員Members

memberMember 描述Description
start 記憶體區域的起始位址。The starting address of the memory region.
end 記憶體區域的結束位址。The ending address of the memory region.
gen CorDebugGenerationTypes 列舉成員,表示記憶體區域的層代。A CorDebugGenerationTypes enumeration member that indicates the generation of the memory region.
heap 記憶體區域所在的堆積號碼。The heap number in which the memory region resides. 如需詳細資訊,請參閱<備註>一節。See the Remarks section for more information.

備註Remarks

COR_SEGMENTS 結構代表受空控堆積中的記憶體區域。The COR_SEGMENTS structure represents a region of memory in the managed heap. COR_SEGMENTS 物件是 ICorDebugHeapRegionEnum 集合物件的成員,集合物件的填入是藉由呼叫 icordebugprocess5:: Enumerateheapregions 方法。COR_SEGMENTS objects are members of the ICorDebugHeapRegionEnum collection object, which is populated by calling the ICorDebugProcess5::EnumerateHeapRegions method.

heap 欄位是處理器號碼,其對應到正在回報的堆積。The heap field is the processor number, which corresponds to the heap being reported. 針對工作站記憶體回收行程,其值一律為零,因為工作站只有一個記憶體回收堆積。For workstation garbage collectors, its value is always zero, because workstations have only one garbage collection heap. 針對伺服器記憶體回收行程,其值對應至堆積附加的處理器。For server garbage collectors, its value corresponds to the processor the heap is attached to. 請注意,可能會有比實際處理器更多或更少記憶體回收堆積,這是因為記憶體回收行程的實作詳細資料所致。Note that there may be more or fewer garbage collection heaps than there are actual processors due to the implementation details of the garbage collector.

規格需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4.5 起可用Available since 4.5.NET Framework Versions: 自 4.5 起可用Available since 4.5

另請參閱See also