summaryrefslogtreecommitdiff
path: root/packaging/0036-Separate-sections-READONLY_VCHUNKS-and-READONLY_DICT.patch
blob: de86c9ba412ef6c2695bb3e2afaf6a1f48c06395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From 305bac1e1c272a45ed0682b8bfa871b6099496ae Mon Sep 17 00:00:00 2001
From: Gleb Balykov <g.balykov@samsung.com>
Date: Wed, 28 Feb 2018 16:28:00 +0300
Subject: [PATCH 36/47] Separate sections READONLY_VCHUNKS and
 READONLY_DICTIONARY

---
 src/inc/corcompile.h | 3 ++-
 src/vm/dataimage.cpp | 4 +++-
 src/zap/zapimage.cpp | 3 ++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/inc/corcompile.h b/src/inc/corcompile.h
index 17fdfcb..1d1f0e4 100644
--- a/src/inc/corcompile.h
+++ b/src/inc/corcompile.h
@@ -1329,7 +1329,8 @@ class ICorCompilePreloader
     CORCOMPILE_SECTION(READONLY_HOT) \
     CORCOMPILE_SECTION(READONLY_WARM) \
     CORCOMPILE_SECTION(READONLY_COLD) \
-    CORCOMPILE_SECTION(READONLY_VCHUNKS_AND_DICTIONARY) \
+    CORCOMPILE_SECTION(READONLY_VCHUNKS) \
+    CORCOMPILE_SECTION(READONLY_DICTIONARY) \
     CORCOMPILE_SECTION(CLASS_COLD) \
     CORCOMPILE_SECTION(CROSS_DOMAIN_INFO) \
     CORCOMPILE_SECTION(METHOD_PRECODE_COLD) \
diff --git a/src/vm/dataimage.cpp b/src/vm/dataimage.cpp
index 4e276fe..854f214 100644
--- a/src/vm/dataimage.cpp
+++ b/src/vm/dataimage.cpp
@@ -749,8 +749,10 @@ FORCEINLINE static CorCompileSection GetSectionForNodeType(ZapNodeType type)
         return CORCOMPILE_SECTION_READONLY_WARM;
 
     case NodeTypeForItemKind(DataImage::ITEM_DICTIONARY):
+        return CORCOMPILE_SECTION_READONLY_DICTIONARY;
+
     case NodeTypeForItemKind(DataImage::ITEM_VTABLE_CHUNK):
-        return CORCOMPILE_SECTION_READONLY_VCHUNKS_AND_DICTIONARY;
+        return CORCOMPILE_SECTION_READONLY_VCHUNKS;
 
     // SECTION_CLASS_COLD
     case NodeTypeForItemKind(DataImage::ITEM_PARAM_TYPEDESC):
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp
index 4c26946..4c1838f 100644
--- a/src/zap/zapimage.cpp
+++ b/src/zap/zapimage.cpp
@@ -572,7 +572,8 @@ void ZapImage::AllocateVirtualSections()
 #endif // defined(WIN64EXCEPTIONS)
 
         m_pPreloadSections[CORCOMPILE_SECTION_READONLY_WARM] = NewVirtualSection(pTextSection, IBCProfiledSection | WarmRange | ReadonlySection, sizeof(TADDR));
-        m_pPreloadSections[CORCOMPILE_SECTION_READONLY_VCHUNKS_AND_DICTIONARY] = NewVirtualSection(pTextSection, IBCProfiledSection | WarmRange | ReadonlySection, sizeof(TADDR));
+        m_pPreloadSections[CORCOMPILE_SECTION_READONLY_VCHUNKS] = NewVirtualSection(pTextSection, IBCProfiledSection | WarmRange | ReadonlySection, sizeof(TADDR));
+        m_pPreloadSections[CORCOMPILE_SECTION_READONLY_DICTIONARY] = NewVirtualSection(pTextSection, IBCProfiledSection | WarmRange | ReadonlySection, sizeof(TADDR));
 
         //
         // GC Info for methods which were not touched in profiling
-- 
2.7.4