Skip to content

Instantly share code, notes, and snippets.

View genlu's full-sized avatar

Gen Lu genlu

  • Microsoft
  • Redmond, WA
View GitHub Profile
@genlu
genlu / gist:c2a1f54c2463970c4964bac911ff1682
Last active August 12, 2022 00:23
Long binaries expression 1
class C
{
void M()
{
var fv = 2;
var m = +Tree1(fv) + Tree2(fv) + Tree3(fv) + Tree4(fv) + Tree5(fv) + Tree6(fv) + Tree7(fv) + Tree8(fv) + Tree9(fv) + Tree10(fv) + Tree11(fv) + Tree12(fv) + Tree13(fv) + Tree14(fv) + Tree15(fv) + Tree16(fv) + Tree17(fv) + Tree18(fv) + Tree19(fv) + Tree20(fv) + Tree21(fv) + Tree22(fv) + Tree23(fv) + Tree24(fv) + Tree25(fv) + Tree26(fv) + Tree27(fv) + Tree28(fv) + Tree29(fv) + Tree30(fv) + Tree31(fv) + Tree32(fv) + Tree33(fv) + Tree34(fv) + Tree35(fv) + Tree36(fv) + Tree37(fv) + Tree38(fv) + Tree39(fv) + Tree40(fv) + Tree41(fv) + Tree42(fv) + Tree43(fv) + Tree44(fv) + Tree45(fv) + Tree46(fv) + Tree47(fv) + Tree48(fv) + Tree49(fv) + Tree50(fv) + Tree51(fv) + Tree52(fv) + Tree53(fv) + Tree54(fv) + Tree55(fv) + Tree56(fv) + Tree57(fv) + Tree58(fv) + Tree59(fv) + Tree60(fv) + Tree61(fv) + Tree62(fv) + Tree63(fv) + Tree64(fv) + Tree65(fv) + Tree66(fv) + Tree67(fv) + Tree68(fv) + Tree69(fv) + Tree70(fv) + Tree71(fv) + Tree72(fv) + Tree73(fv) + Tree74(fv) + Tree7
Name
+ Type System.Object[]
|+ clr!ETW::SamplingLog::SendStackTrace
| + clr!??EtwCallout
| + clr!??CoTemplate_qqhxpzqp
| + clr!GCToCLREventSink::FireGCAllocationTick_V3
| + clr!GCEventFireGCAllocationTick_V3
| + clr!??SVR::gc_heap::try_allocate_more_space
| + clr!SVR::gc_heap::allocate_more_space
| + clr!SVR::gc_heap::allocate_large_object
Name
Thread (11632) CPU=456ms
+ ntdll!RtlUserThreadStart
+ kernel32!BaseThreadInitThunk
+ clr!Thread::intermediateThreadProc
+ clr!ThreadpoolMgr::WorkerThreadStart
+ clr!ThreadpoolMgr::ExecuteWorkRequest
+ clr!ManagedPerAppDomainTPCount::DispatchWorkItem
+ clr!ManagedThreadBase_FullTransitionWithAD
+ clr!ManagedThreadBase_DispatchOuter
@genlu
genlu / gist:e14fc8d3158e27d47896cc3e681ae054
Created April 4, 2022 18:12
Threads_BannedGetServiceRPCCount_Total_devenv stcak
https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/390652
Name
Thread (6568) CPU=1520ms
+ ntdll!RtlUserThreadStart
+ kernel32!BaseThreadInitThunk
+ clr!Thread::intermediateThreadProc
+ clr!ThreadpoolMgr::WorkerThreadStart
+ clr!ThreadpoolMgr::ExecuteWorkRequest
+ clr!ManagedPerAppDomainTPCount::DispatchWorkItem
Name
Image Load Microsoft.CodeAnalysis.EditorFeatures.Wpf.ni.dll (C:\Windows\assembly\NativeImages_v4.0.30319_64\Microsoft.Cb29460c7#\525135cafbfef64dc8dd5cae809384a2\)
+ ntoskrnl!?
+ ntdll!NtMapViewOfSection
+ ntdll!LdrpMinimalMapModule
+ ntdll!LdrpMapDllWithSectionHandle
+ ntdll!LdrpMapDllNtFileName
+ ntdll!LdrpMapDllFullPath
+ ntdll!LdrpProcessWork
+ ntdll!LdrpLoadDllInternal
@genlu
genlu / gist:8c07c4f14aa15e15ecfb17a423918e8d
Created June 30, 2021 22:01
imageload stack of Microsoft.CodeAnalysis.EditorFeatures.Wpf.ni.dll
Name
Image Load Microsoft.CodeAnalysis.EditorFeatures.Wpf.ni.dll (C:\Windows\assembly\NativeImages_v4.0.30319_64\Microsoft.Cb29460c7#\6e7bb16f7633165df13ec66aa388f46e\)
+ ntoskrnl!?
+ ntdll!?
+ kernelbase!?
+ clr!?
+ mscorlib.ni!RuntimeAssembly.InternalLoadAssemblyName
+ mscorlib.ni!Assembly.Load
+ microsoft.visualstudio.extensibilityhosting.ni!?
+ microsoft.visualstudio.composition.ni!ResolverExtensions.GetManifest
@genlu
genlu / demo.md
Last active April 27, 2021 14:52
BlazorApp Demo Script
  1. With a small codebase, I've setup the demo to closely resemble the way many people approach their daily coding tasks, instead of grouping related features together and going through a checklist.
@genlu
genlu / gist:4a3659af8e9e648acd6a4dd1adab2597
Created November 2, 2020 19:43
Assertion Failure fullstack
StreamJsonRpc.RemoteInvocationException:
at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__137`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult()
at Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection`1.<TryInvokeAsync>d__17`1.MoveNext() in C:\Users\gel\roslyn\src\Workspaces\Remote\Core\BrokeredServiceConnection.cs:line 204
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
@genlu
genlu / springer-free-maths-books.md
Created December 28, 2015 20:34 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links