You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an Int32[30000]; //smaller but still big enough to go on the LOH
22
+
Throw away the big array but keep the small array. //Creates a 100000000 hole on the LOH immediately followed by an in-use region for the small array.
23
+
next iteration will create another big array slightly bigger the first. //This won't fit in the 'hole' of the previous array. The heap must be extended now for the new array to fit.
24
+
Loop for a while.
25
+
26
+
We should find it taking longer and longer to allocate the large arrays and using lots of memory until eventually an OOM happens.
27
+
28
+
We can do the exact same operations with SafeArray<Int32> and then compare the performance.
0 commit comments