Speed-up JIT dump
authorMike Danes <onemihaid@hotmail.com>
Sun, 19 Aug 2018 10:29:49 +0000 (13:29 +0300)
committerMike Danes <onemihaid@hotmail.com>
Wed, 22 Aug 2018 16:47:15 +0000 (19:47 +0300)
commitcd8594dc2ed408a925548a6b8fd95a7f2500a724
tree3e7c41884e3179591c123b65644044eab3d6b667
parent999bd3145bea7a64f6752ae95e9a8eaee334c649
Speed-up JIT dump

Add a config option that allows routing JIT's stdout output to a
specified file. jitStartup disables stdio buffering on its stdout
created stream and that makes large dumps (such as the ones generated
by jit-diff) 2-4x slower. Simply enabling buffering is somewhat
problematic, it would require occasional flushing to avoid losing
output in the case of a crash and can also result in mingled output
if crossgen decides to print something via its own stdout stream.

file

fix

Commit migrated from https://github.com/dotnet/coreclr/commit/193e3134e3726b933111b46617be9bee05084ee2
src/coreclr/src/jit/ee_il_dll.cpp
src/coreclr/src/jit/jitconfigvalues.h