diff options
author | Konstantin Baladurin <k.baladurin@partner.samsung.com> | 2018-07-20 21:19:08 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-07-20 11:19:08 -0700 |
commit | 8cd25f88635fbb2e05fcc8299ef537852db9264b (patch) | |
tree | 6ddfd35568bab0ab90709e8cfc71f8cbd84a7090 /src/zap/zapimage.cpp | |
parent | b896dd14830b600043a99c2626ea848ad679fb4f (diff) | |
download | coreclr-8cd25f88635fbb2e05fcc8299ef537852db9264b.tar.gz coreclr-8cd25f88635fbb2e05fcc8299ef537852db9264b.tar.bz2 coreclr-8cd25f88635fbb2e05fcc8299ef537852db9264b.zip |
Zapper::CompileAssembly: save NI file atomically (#19059)
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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp index 7cde51d9ea..a05179aa1c 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); |