summaryrefslogtreecommitdiff
path: root/src/pal/inc/pal.h
diff options
context:
space:
mode:
authorDong-Heon Jung <dheon.jung@samsung.com>2019-08-31 06:05:53 +0900
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 15:29:41 +0300
commitefa62c091a5c9a2729f8948c1d3703156fb78e3b (patch)
treec1d104e16f236b1650100712debef5fac80ed798 /src/pal/inc/pal.h
parent06a2676689168f5190c29e7638a47a783cb9258b (diff)
downloadcoreclr-efa62c091a5c9a2729f8948c1d3703156fb78e3b.tar.gz
coreclr-efa62c091a5c9a2729f8948c1d3703156fb78e3b.tar.bz2
coreclr-efa62c091a5c9a2729f8948c1d3703156fb78e3b.zip
Mark Relocation Section as NotNeeded (#25715)
- After relocation, relocation section in zap image is not necessary. - Mark the section as NotNeeded by giving advice(madvise with MADV_DONTNEED) - It reduces 120~150KB PSS in tizen sample apps.
Diffstat (limited to 'src/pal/inc/pal.h')
-rw-r--r--src/pal/inc/pal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h
index 11b434dcd2..5a4e758aaf 100644
--- a/src/pal/inc/pal.h
+++ b/src/pal/inc/pal.h
@@ -2755,6 +2755,22 @@ Return value:
BOOL
PAL_LOADUnloadPreloadedPEFiles();
+/*++
+ PAL_LOADMarkSectionAsNotNeeded
+
+ Mark a section as NotNeeded that was loaded by PAL_LOADLoadPEFile().
+
+Parameters:
+ IN ptr - the section address mapped by PAL_LOADLoadPEFile()
+
+Return value:
+ TRUE - success
+ FALSE - failure (incorrect ptr, etc.)
+--*/
+BOOL
+PALAPI
+PAL_LOADMarkSectionAsNotNeeded(void * ptr);
+
#ifdef UNICODE
#define LoadLibrary LoadLibraryW
#define LoadLibraryEx LoadLibraryExW