summaryrefslogtreecommitdiff
path: root/src/zap/zapimage.cpp
diff options
context:
space:
mode:
authorKonstantin Baladurin <k.baladurin@partner.samsung.com>2018-07-20 15:19:50 +0300
committerDmitri Botcharnikov <dmitry.b@samsung.com>2018-07-27 13:21:01 +0300
commit997ebdd71f03e6d8c7c9d4cc52c1ea39aaccd5ea (patch)
tree913da265f214e30c705a8b4dce9f4dfbcb394ce3 /src/zap/zapimage.cpp
parente17501e5dc76527ffd6e1556e2694720326f6b82 (diff)
downloadcoreclr-997ebdd71f03e6d8c7c9d4cc52c1ea39aaccd5ea.tar.gz
coreclr-997ebdd71f03e6d8c7c9d4cc52c1ea39aaccd5ea.tar.bz2
coreclr-997ebdd71f03e6d8c7c9d4cc52c1ea39aaccd5ea.zip
Zapper::CompileAssembly: save NI file atomically
It can get rid of possible problems with corrupted NI files if crossgen will be killed during image saving.
Diffstat (limited to 'src/zap/zapimage.cpp')
-rw-r--r--src/zap/zapimage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp
index 3ad696720a..a58e372120 100644
--- a/src/zap/zapimage.cpp
+++ b/src/zap/zapimage.cpp
@@ -1082,7 +1082,7 @@ HANDLE ZapImage::GenerateFile(LPCWSTR wszOutputFileName, CORCOMPILE_NGEN_SIGNATU
}
-HANDLE ZapImage::SaveImage(LPCWSTR wszOutputFileName, CORCOMPILE_NGEN_SIGNATURE * pNativeImageSig)
+HANDLE ZapImage::SaveImage(LPCWSTR wszOutputFileName, LPCWSTR wszDllPath, CORCOMPILE_NGEN_SIGNATURE * pNativeImageSig)
{
if (!IsReadyToRunCompilation())
{
@@ -1095,7 +1095,7 @@ HANDLE ZapImage::SaveImage(LPCWSTR wszOutputFileName, CORCOMPILE_NGEN_SIGNATURE
// that native images are resoure-only DLLs. It is important to NOT
// be a resource-only DLL because those DLL's PDBS are not put up on the
// symbol server and we want NEN PDBS to be placed there.
- ZapPEExports* exports = new(GetHeap()) ZapPEExports(wszOutputFileName);
+ ZapPEExports* exports = new(GetHeap()) ZapPEExports(wszDllPath);
m_pDebugSection->Place(exports);
SetDirectoryEntry(IMAGE_DIRECTORY_ENTRY_EXPORT, exports);