Beispiel #1
0
        public void TestThreadStaticMap()
        {
            MetadataType mixedThreadStaticClass = _testModule.GetType("GCPointerMap", "MixedThreadStaticClass");
            var          map = GCPointerMap.FromThreadStaticLayout(mixedThreadStaticClass);

            Assert.Equal(map.Size, 14);
            Assert.Equal("00010010100110", map.ToString());
        }
Beispiel #2
0
        private ISymbolNode GetGCStaticEETypeNode(NodeFactory factory)
        {
            GCPointerMap map = GCPointerMap.FromThreadStaticLayout(_type);

            return(factory.GCStaticEEType(map));
        }
Beispiel #3
0
 public GCStaticDescNode(MetadataType type, bool isThreadStatic)
 {
     _type           = type;
     _gcMap          = isThreadStatic ? GCPointerMap.FromThreadStaticLayout(type) : GCPointerMap.FromStaticLayout(type);
     _isThreadStatic = isThreadStatic;
 }