Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Threading.Tasks;
public class Tester {
public static async Task<(bool isAnswerCorrect, bool isInternetConnectionAvailable)> Test ()
{
return (true, true);
}
public static void Main (string [] args) {
## Post-mortem
### What are we seeing?
```
=================================================================
Telemetry Dumper:
=================================================================
Pkilling 0x7000049a6000 from 0x7fffa4a93380
Pkilling 0x700003d11000 from 0x7fffa4a93380
@alexanderkyte
alexanderkyte / No Inlines
Created March 18, 2019 22:28
CanBuildFrom and BuildFrom both explode inside of the inlined code.
define hidden monocc i64* @NUnit_Framework_Internal_NUnitLiteTestAssemblyBuilder_GetFixtures_System_Reflection_Assembly_System_Collections_IList(i64* %this, i64* %arg_assembly, i64* %arg_names) #5 gc "mono" personality void ()* @mono_personality !dbg !7176 {
BB0:
%0 = alloca i64, align 8, !dbg !7177
%1 = alloca i64, align 8, !dbg !7177
%2 = alloca i64*, align 8, !dbg !7177
%3 = alloca i64*, align 8, !dbg !7177
%4 = alloca i64*, align 8, !dbg !7177
%5 = alloca i64*, align 8, !dbg !7177
%6 = alloca i64*, align 8, !dbg !7177
%7 = alloca i64*, align 8, !dbg !7177
=================================================================
External Debugger Dump:
=================================================================
[New LWP 21698]
[New LWP 21699]
[New LWP 21700]
[New LWP 21701]
[New LWP 21702]
[New LWP 21703]
[New LWP 21706]
; ModuleID = 'mono_aot_xBUIbi/temp.opt.bc'
source_filename = "aot"
%MonoAotFileInfo = type { i32, i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [11 x i32], [6 x i32], [6 x i32], [6 x i32], [6 x i32], [16 x i8] }
@method_info_offsets = internal constant [35 x i8] c"\0B\00\00\00\0A\00\00\00\02\00\00\00\02\00\00\00\00\00\0E\00\01\01\01\01\06\05\FF\FF\FF\FF\F1\10\01\01\13", align 8
@extra_method_table = internal constant [148 x i8] c"\0B\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\14\00\00\00\07\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00$\00\00\00\09\00\00\00\00\00\00\00\1C\00\00\00\08\00\00\00\0B\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0
; ModuleID = 'mono_aot_3Xo1w4/temp.opt.bc'
source_filename = "aot"
%MonoAotFileInfo = type { i32, i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [11 x i32], [6 x i32], [6 x i32], [6 x i32], [6 x i32], [16 x i8] }
@method_info_offsets = internal constant [32 x i8] c"\0A\00\00\00\0A\00\00\00\01\00\00\00\02\00\00\00\00\00\01\05\03\03\03\FF\FF\FF\FF\F1\10\01\01\01", align 8
@extra_method_table = internal constant [136 x i8] c"\0B\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\14\00\00\00\06\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\1B\00\00\00\07\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\22\00\00\00\08\00\00\00\00\00\00\00)\00\00\00\09\00\00\00\00\00\00\00\00\00\00\00\0
; Function Attrs: noinline uwtable
define hidden monocc i8 @StackOverflowTest_Program_WaitOne_bool_bool(i32 %arg_killProcessOnInterrupt, i32 %arg_throwOnInterrupt) #5 gc "mono" personality void ()* @mono_personality {
BB0:
%0 = alloca i64, align 8
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = alloca i64*, align 1
%4 = alloca i64*, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
using System;
using System.Runtime.CompilerServices;
namespace NoThrowInline
{
class MainClass
{
static private void ThrowIfNull(string s)
{
if (s == null)
using System;
using System.Collections;
using System.Globalization;
namespace CultureInfoBenchmark
{
class MainClass
{
static MainClass()
{
using System;
namespace ArrayCopyBenchmark
{
class MainClass
{
private const int MAX_ARRAY_SIZE = 4096;
private static readonly int s_DIM_2 = (int)Math.Pow(MAX_ARRAY_SIZE, (1.0 / 2.0));
private static readonly int s_DIM_3 = (int)(Math.Pow(MAX_ARRAY_SIZE, (1.0 / 3.0)) + .001);
private static Array s_arr2;