Zapper::CompileAssembly: save NI file atomically (dotnet/coreclr#19059)
authorKonstantin Baladurin <k.baladurin@partner.samsung.com>
Fri, 20 Jul 2018 18:19:08 +0000 (21:19 +0300)
committerJan Kotas <jkotas@microsoft.com>
Fri, 20 Jul 2018 18:19:08 +0000 (11:19 -0700)
commit81985468dd7519bf316c0baa1bcb799644b0dc60
tree6f1aa59e02bf94363a4b367e7a3c842ab425ac01
parent47a3b4322b4cb431f97c5713196d1d9ce7bd6cf2
Zapper::CompileAssembly: save NI file atomically (dotnet/coreclr#19059)

It can get rid of possible problems with corrupted NI files if crossgen
will be killed during image saving.

Commit migrated from https://github.com/dotnet/coreclr/commit/8cd25f88635fbb2e05fcc8299ef537852db9264b
src/coreclr/src/zap/zapimage.cpp
src/coreclr/src/zap/zapimage.h
src/coreclr/src/zap/zapper.cpp