summaryrefslogtreecommitdiff
path: root/packaging/0036-Separate-sections-READONLY_VCHUNKS-and-READONLY_DICT.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/0036-Separate-sections-READONLY_VCHUNKS-and-READONLY_DICT.patch')
-rw-r--r--packaging/0036-Separate-sections-READONLY_VCHUNKS-and-READONLY_DICT.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/packaging/0036-Separate-sections-READONLY_VCHUNKS-and-READONLY_DICT.patch b/packaging/0036-Separate-sections-READONLY_VCHUNKS-and-READONLY_DICT.patch
new file mode 100644
index 0000000000..de86c9ba41
--- /dev/null
+++ b/packaging/0036-Separate-sections-READONLY_VCHUNKS-and-READONLY_DICT.patch
@@ -0,0 +1,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
+