コード例 #1
0
ファイル: sgen-descriptors.cs プロジェクト: nobled/mono
	static void Fill (int cycles) {
		object[] root = new object [13];
		object[] current = root;
		for (int i = 0; i < cycles; ++i) {
			current [0] = new object [13];
			current [1] = new int [6];
			current [2] = new int [2,3];
			current [3] = new string (FOO);
			current [4] = new SmallBitMap ();
			current [5] = new LargeBitMap ();
			current [6] = new ComplexBitMap ();
			current [7] = new PtrFree ();
			current [8] = new SmallMixed [3];
			current [9] = new LargeMixed [3];

			if ((i % 50000) == 0)
				current [10] = new HugePtrFree ();
			if ((i %  10000) == 0)
				current [11] = new LargeStruct2 [1];

			/* Test for 64 bit bitmap descriptors (#14834) */
			current [12] = new Non32bitBitmap () { o = new object (), i32 = 1, i33 = 1, i34 = 1, i35 = 1, o2 = new object () };
	
			current = (object[])current [0];
		}
	}
コード例 #2
0
    static void Fill(int cycles)
    {
        object[] root    = new object [12];
        object[] current = root;
        for (int i = 0; i < cycles; ++i)
        {
            current [0] = new object [12];
            current [1] = new int [6];
            current [2] = new int [2, 3];
            current [3] = new string (FOO);
            current [4] = new SmallBitMap();
            current [5] = new LargeBitMap();
            current [6] = new ComplexBitMap();
            current [7] = new PtrFree();
            current [8] = new SmallMixed [3];
            current [9] = new LargeMixed [3];

            if ((i % 50000) == 0)
            {
                current [10] = new HugePtrFree();
            }
            if ((i % 10000) == 0)
            {
                current [11] = new LargeStruct2 [1];
            }

            current = (object[])current [0];
        }
    }
コード例 #3
0
    static void Fill(int cycles)
    {
        object[] root    = new object [13];
        object[] current = root;
        for (int i = 0; i < cycles; ++i)
        {
            current [0] = new object [13];
            current [1] = new int [6];
            current [2] = new int [2, 3];
            current [3] = new string (FOO);
            current [4] = new SmallBitMap();
            current [5] = new LargeBitMap();
            current [6] = new ComplexBitMap();
            current [7] = new PtrFree();
            current [8] = new SmallMixed [3];
            current [9] = new LargeMixed [3];

            if ((i % 50000) == 0)
            {
                current [10] = new HugePtrFree();
            }
            if ((i % 10000) == 0)
            {
                current [11] = new LargeStruct2 [1];
            }

            /* Test for 64 bit bitmap descriptors (#14834) */
            current [12] = new Non32bitBitmap()
            {
                o = new object(), i32 = 1, i33 = 1, i34 = 1, i35 = 1, o2 = new object()
            };

            current = (object[])current [0];
        }
    }
コード例 #4
0
ファイル: sgen-descriptors.cs プロジェクト: carrie901/mono
	static void Fill (int cycles) {
		object[] root = new object [12];
		object[] current = root;
		for (int i = 0; i < cycles; ++i) {
			current [0] = new object [12];
			current [1] = new int [6];
			current [2] = new int [2,3];
			current [3] = new string (FOO);
			current [4] = new SmallBitMap ();
			current [5] = new LargeBitMap ();
			current [6] = new ComplexBitMap ();
			current [7] = new PtrFree ();
			current [8] = new SmallMixed [3];
			current [9] = new LargeMixed [3];

			if ((i % 50000) == 0)
				current [10] = new HugePtrFree ();
			if ((i %  10000) == 0)
				current [11] = new LargeStruct2 [1];
	
			current = (object[])current [0];
		}
	}