diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-04-19 07:14:25 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-04-19 07:14:25 +0300 |
commit | 802eb6ad212377e8e2b90da34950194018fe41da (patch) | |
tree | 258e070702395eee295080063521c121cf0b3e2e /src/Native/Runtime/i386 | |
parent | a3340a16fa2a2cdb739dd6c2a93e248823586b63 (diff) |
Remove shutdown finalization
Remove shutdown finalization. It makes CoreRT/PN consistent with .NETCore / CoreCLR. The long story is in https://github.com/dotnet/corefx/issues/5205. The shutdown finalization was not used by UWP apps because they are never shutdown gracefully.
[tfs-changeset: 1597160]
Diffstat (limited to 'src/Native/Runtime/i386')
-rw-r--r-- | src/Native/Runtime/i386/MiscStubs.asm | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/Native/Runtime/i386/MiscStubs.asm b/src/Native/Runtime/i386/MiscStubs.asm index e6ffd4cc5..80ff054db 100644 --- a/src/Native/Runtime/i386/MiscStubs.asm +++ b/src/Native/Runtime/i386/MiscStubs.asm @@ -9,7 +9,6 @@ include AsmMacros.inc -EXTERN @RhpShutdownHelper@4 : PROC EXTERN @GetClasslibCCtorCheck@4 : PROC EXTERN _memcpy : PROC EXTERN _memcpyGCRefs : PROC @@ -17,38 +16,6 @@ EXTERN _memcpyGCRefsWithWriteBarrier : PROC EXTERN _memcpyAnyWithWriteBarrier : PROC ;; -;; Currently called only from a managed executable once Main returns, this routine does whatever is needed to -;; cleanup managed state before exiting. This routine never returns. -;; -;; Input: -;; ecx : Process exit code -;; -FASTCALL_FUNC RhpShutdown, 4 - - ;; Build an EBP frame, mostly so we get a good stack trace during debugging. - push ebp - mov ebp, esp - - ;; edx = GetThread(), TRASHES eax - INLINE_GETTHREAD edx, eax - - ;; Save managed state in a frame and update the thread so it can find this frame once we transition to - ;; pre-emptive mode in the garbage collection. - PUSH_COOP_PINVOKE_FRAME edx - - ;; Call the bulk of the helper implemented in C++. Takes the exit code already in ecx. - call @RhpShutdownHelper@4 - - ;; Restore register state. - POP_COOP_PINVOKE_FRAME - - ;; Epilog, tear down EBP frame and return. - pop ebp - ret - -FASTCALL_ENDFUNC - -;; ;; Checks whether the static class constructor for the type indicated by the context structure has been ;; executed yet. If not the classlib is called via their CheckStaticClassConstruction callback which will ;; execute the cctor and update the context to record this fact. |