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 TestTimeout timeout
= TestTimeout
.Start (TimeSpan
.FromSeconds(TestTimeout
.IsStressTest
? 60 : 5));
49 Console
.WriteLine ("----Testing {0}----", name
);
50 for (int i
= 0; timeout
.HaveTimeLeft
; ++i
) {
51 var ad
= AppDomain
.CreateDomain (string.Format ("domain-{0}-{1}", name
, i
));
53 AppDomain
.Unload (ad
);
58 CrossDomainTest ("simple-heap-with-los", Driver
.SimpleHeapWithLOS
);