summaryrefslogtreecommitdiff
path: root/src/gc/gcrecord.h
diff options
context:
space:
mode:
authorMaoni0 <maonis@microsoft.com>2016-11-18 00:45:29 -0800
committerMaoni0 <maonis@microsoft.com>2016-11-22 20:10:16 -0800
commit1af571470c91528c31c0caf7a1726428c21a2be0 (patch)
treebfb5f05ab36a5acdab3a7c5c2b755e49765e419c /src/gc/gcrecord.h
parent204f6e8859e3676114c85f49b8d2c311458ac715 (diff)
downloadcoreclr-1af571470c91528c31c0caf7a1726428c21a2be0.tar.gz
coreclr-1af571470c91528c31c0caf7a1726428c21a2be0.tar.bz2
coreclr-1af571470c91528c31c0caf7a1726428c21a2be0.zip
This is to separate the diagnostics code out from gc.cpp (except
GC's own logging), gcee.cpp and objecthandle.cpp. The rule is GC will call the diagnostics functions at various points to communicate info and these diagnostics functions might call back into the GC if they require initimate knowledge of the GC in order to get certain info. This way gc.cpp does not need to know about details of the diagnostics components, eg, the profiling context; and the diagnostics components do not need to know details about the GC. So got rid of ProfilingScanContext in gcinterface.h and passed scanning functions to GC and handle table. Got rid of where it goes through things per heap as this is not something that diagnostics should care about, including going through stack roots per heap (which is only done in GC for scalability purposes but profiling is doing this on a single thread). This also makes it faster. Got rid of the checks for gc_low/high in ProfScanRootsHelper as this is knowledge profiling shouldn't have. And it was also incorrectly not including all interior pointer stack roots.
Diffstat (limited to 'src/gc/gcrecord.h')
-rw-r--r--src/gc/gcrecord.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gc/gcrecord.h b/src/gc/gcrecord.h
index 8c95ad04d3..fff1fc5c8b 100644
--- a/src/gc/gcrecord.h
+++ b/src/gc/gcrecord.h
@@ -13,7 +13,7 @@ Module Name:
#ifndef __gc_record_h__
#define __gc_record_h__
-#define max_generation 2
+//#define max_generation 2
// We pack the dynamic tuning for deciding which gen to condemn in a uint32_t.
// We assume that 2 bits are enough to represent the generation.