2 using System.Collections.Generic;
9 static void ProduceSimpleHeapWithLOS () {
10 Console.WriteLine ("running in {0}", AppDomain.CurrentDomain);
11 byte[] a = new byte [4 * 1000 * 1000];
12 byte[] b = new byte [4 * 1000 * 1000];
13 byte[] c = new byte [4 * 1000 * 1000];
14 var lst = new List<object> ();
18 for (int i = 0; i < 1000 * 200; ++i) {
43 static void SimpleHeapWithLOS () {
44 ProduceSimpleHeapWithLOS ();
47 static void CrossDomainTest (string name, CrossAppDomainDelegate dele) {
48 Console.WriteLine ("----Testing {0}----", name);
49 for (int i = 0; i < 20; ++i) {
50 var ad = AppDomain.CreateDomain (string.Format ("domain-{0}-{1}", name, i));
52 AppDomain.Unload (ad);
57 CrossDomainTest ("simple-heap-with-los", Driver.SimpleHeapWithLOS);