diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-05-12 14:32:13 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-05-12 16:20:20 -0700 |
commit | 8172ccaa93df60a46712f3453a4871ce0026f3ea (patch) | |
tree | 7b092e72b2efb2a947ea79a4702e4f52766978f1 /src/jit/inline.cpp | |
parent | c1181048d92afa49043cdd4ef50962eb2a949007 (diff) | |
download | coreclr-8172ccaa93df60a46712f3453a4871ce0026f3ea.tar.gz coreclr-8172ccaa93df60a46712f3453a4871ce0026f3ea.tar.bz2 coreclr-8172ccaa93df60a46712f3453a4871ce0026f3ea.zip |
Use a JIT-specific stdout `FILE*`.
Historically, the JIT has had issues with logging inside of processes
that change the output mode of stdout (e.g. crossgen). This change
replaces the previous solution (which relied on #ifdefs) by dup'ing
the stdout file and wrapping it in a new `FILE*` set to a known
output mode.
Diffstat (limited to 'src/jit/inline.cpp')
-rw-r--r-- | src/jit/inline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jit/inline.cpp b/src/jit/inline.cpp index 1f728dd59f..f39c553310 100644 --- a/src/jit/inline.cpp +++ b/src/jit/inline.cpp @@ -345,7 +345,7 @@ InlineContext::InlineContext(InlineStrategy* strategy) #if defined(DEBUG) || defined(INLINE_DATA) //------------------------------------------------------------------------ -// Dump: Dump an InlineContext entry and all descendants to stdout +// Dump: Dump an InlineContext entry and all descendants to jitstdout // // Arguments: // indent - indentation level for this node @@ -451,7 +451,7 @@ void InlineContext::DumpData(unsigned indent) { const char* inlineReason = InlGetObservationString(m_Observation); printf("%*s%u,\"%s\",\"%s\"", indent, "", m_Ordinal, inlineReason, calleeName); - m_Policy->DumpData(stdout); + m_Policy->DumpData(jitstdout); printf("\n"); } |