2 using System
.Collections
.Generic
;
6 Console
.WriteLine ("start");
7 var l
= new object[40000];
9 for (int i
= 0; i
< 40000; ++i
) {
10 var foo
= new byte[2000];
13 Console
.WriteLine ("done");
15 } catch (Exception e
) {
16 /*Create massive fragmentation - hopefully*/
17 for (int i
= 0; i
< 40000; i
+= 2)
19 /*Fist major schedule the given block range for evacuation*/
21 /*Second major triggers evacuation*/
23 Array
.Clear (l
, 0, 40000);
25 Console
.WriteLine ("OOM done");