コード例 #1
0
ファイル: nstructtun.cs プロジェクト: mikem8361/runtime
#pragma warning restore 0414
            public CreateObj(int Rep)
            {
                for (int i = 0; i < Rep; i++)
                {
                    Strmap = new STRMAP();
                }
            }
コード例 #2
0
ファイル: nstructtun.cs プロジェクト: CheneyWu/coreclr
#pragma warning restore 0414
            public CreateObj(int Rep)
            {
                 for( int i=0; i< Rep; i++ )
                 {
                    Strmap = new STRMAP();
                 }
             }
コード例 #3
0
 public static STRMAP[] CreateObj(int iObj)
 {
     STRMAP [] strmap = new STRMAP[iObj];
     for (int i = 0; i < iObj; i++) //allocate 3100KB
     {
         strmap[i] = new STRMAP();
     }
     return(strmap);
 }
コード例 #4
0
ファイル: finalnstruct.cs プロジェクト: CheneyWu/coreclr
        public static STRMAP[] CreateObj(int iObj)
        {

            STRMAP []strmap = new STRMAP[iObj];
            for (int i=0; i< iObj; i++ ) //allocate 3100KB
            {
                strmap[i] = new STRMAP();
            }
            return strmap;

        }
コード例 #5
0
            public bool RunTest()
            {
                Strmap = null;

                GC.Collect();
                GC.WaitForPendingFinalizers();
                GC.Collect();

                Console.Out.WriteLine(FinalizeCount.icCreat + " NStruct Objects were deleted and " + FinalizeCount.icFinal + " finalized.");

                return(FinalizeCount.icCreat == FinalizeCount.icFinal);
            }
コード例 #6
0
ファイル: nstructtun.cs プロジェクト: CheneyWu/coreclr
            public bool RunTest()
            {
                Strmap=null;

                GC.Collect();
                GC.WaitForPendingFinalizers();
                GC.Collect();

                Console.Out.WriteLine(FinalizeCount.icCreat + " NStruct Objects were deleted and "+ FinalizeCount.icFinal +" finalized.");

                return (FinalizeCount.icCreat == FinalizeCount.icFinal );
            }
コード例 #7
0
 public static void CreateObj(int iObj)
 {
     STRMAP [] strmap = new STRMAP[iObj];
     for (int i = 0; i < iObj; i++) //allocate 3100KB
     {
         strmap[i] = new STRMAP();
     }
     for (int i = 0; i < iObj; i++)
     {
         strmap[i] = null;
     }
 }
コード例 #8
0
ファイル: finalnstruct.cs プロジェクト: CheneyWu/coreclr
        public static bool RunTest(int iObj,STRMAP []strmap)
        {

            for( int i=0; i< iObj; i++ )
            {
                strmap[i] = null;
            }

            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();

            return ( FinalizeCount.icFinal == FinalizeCount.icCreat );

        }
コード例 #9
0
ファイル: nstructtun.cs プロジェクト: mikem8361/runtime
 public void DestroyStrmap()
 {
     Strmap = null;
 }
コード例 #10
0
 public void DestoryStrmap()
 {
     Strmap = null;
 }
コード例 #11
0
 public void DeleteStrmap()
 {
     Strmap = null;
 }