Upload
fabricio-catae
View
102
Download
2
Embed Size (px)
Citation preview
CLR Fundamentals
Fabricio CataePremier Field Engineer
Win32: Isolação de Processos
Notepad.exe W3wp.exe
CLR: Application Domain
Process.exe
AppDomain
Assembly
Assembly
Assembly
AppDomain
Assembly
Assembly
Win32 DLL
DLL Nativa
PE Header
CodeMetadata
PE HeaderCLR Header
IL
CLR
Gerenciamento de Memória
Garbage CollectorCleanSweepCompact
1
2
3
4
Gerenciamento de Memória
Garbage CollectorCleanSweepCompact
1
4
Pergunta
Managed Heap é dividia em quantas GENERATIONS?
Alocação de Memória
1 2 3 4 5
GEN0
Alocação de Memória
1 3 5
GEN0
Alocação de Memória
1 3 5
GEN1 GEN0
Alocação de Memória
1 3 5
GEN1 GEN0
6 7 8
Alocação de Memória
1 3
GEN1 GEN0
6
Alocação de Memória
1 3
GEN2 GEN0
6
GEN1
Alocação de Memória
1 3
GEN2 GEN0
6
GEN1
8 9
Alocação de Memória
1 3
GEN2 GEN0
6
GEN1
8 9
Alocação de Memória
1 3
GEN2 GEN0
6
GEN1
8 9 10
Monitoração
Heap (GEN 0 / GEN 1 / GEN 2)
Large Object Heap
Tempo de Garbage Collector (GC Time)
Performance Monitor
Hierarquia
Process.exe
AppDomain
AssemblyModule
MethodTableMethodDescriptor
DumpHeap
Unmanaged Resources
Process.exe
AppDomain
Assembly
Assembly
Assembly
File Handle
TCP Socket
IDisposable
Método determinístico de limpeza de Unmanaged Resources
Dispose()
SupressFinalizer()
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.