Welcome to mirror list, hosted at ThFree Co, Russian Federation.

specialstatics.h « vm « coreclr « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6ad0fdc63c9a2ad2a7f1c1ab107a79b47bdaa038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

/*===========================================================================
**
** File:    SpecialStatics.h
**
**
** Purpose: Defines the data structures for context relative statics.
**
**
**
=============================================================================*/
#ifndef _H_SPECIALSTATICS_
#define _H_SPECIALSTATICS_

// Data structure for storing special context relative static data.
typedef struct _STATIC_DATA
{
    DWORD           cElem;
    PTR_VOID        dataPtr[0];

#ifdef DACCESS_COMPILE
    static ULONG32 DacSize(TADDR addr)
    {
        DWORD cElem = *PTR_DWORD(addr);
        return offsetof(struct _STATIC_DATA, dataPtr) +
            cElem * sizeof(TADDR);
    }

    void EnumMemoryRegions(CLRDataEnumMemoryFlags flags);
#endif

} STATIC_DATA;
typedef SPTR(STATIC_DATA) PTR_STATIC_DATA;

typedef SimpleList<OBJECTHANDLE> ObjectHandleList;

#endif