Skip to content

Commit

Permalink
Merge pull request #16691 from SajinaKandy/versionErrorMsg
Browse files Browse the repository at this point in the history
Print Version Incompatible message at Server and client when XX:+JITServerLogConnection is specified
  • Loading branch information
mpirvu authored Feb 9, 2023
2 parents fd64452 + b109001 commit 5c297f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/compiler/control/CompilationThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11266,7 +11266,7 @@ TR::CompilationInfoPerThreadBase::processException(
}
catch (const JITServer::StreamVersionIncompatible &e)
{
if (TR::Options::getVerboseOption(TR_VerboseJITServer))
if (TR::Options::getVerboseOption(TR_VerboseJITServer) || TR::Options::getVerboseOption(TR_VerboseJITServerConns))
TR_VerboseLog::writeLineLocked(TR_Vlog_JITServer, "compThreadID=%d JITServer StreamVersionIncompatible: %s", getCompThreadId(), e.what());
Trc_JITServerStreamVersionIncompatible(vmThread, getCompThreadId(), __FUNCTION__, compiler->signature(), compiler->getHotnessName(), e.what());
_methodBeingCompiled->_compErrCode = compilationStreamVersionIncompatible;
Expand Down
4 changes: 2 additions & 2 deletions runtime/compiler/control/JITServerCompilationThread.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2022 IBM Corp. and others
* Copyright (c) 2018, 2023 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -948,7 +948,7 @@ TR::CompilationInfoPerThreadRemote::processEntry(TR_MethodToBeCompiled &entry, J
}
catch (const JITServer::StreamVersionIncompatible &e)
{
if (TR::Options::getVerboseOption(TR_VerboseJITServer))
if (TR::Options::getVerboseOption(TR_VerboseJITServer) || TR::Options::getVerboseOption(TR_VerboseJITServerConns))
TR_VerboseLog::writeLineLocked(TR_Vlog_JITServer, "compThreadID=%d stream version incompatible: %s", getCompThreadId(), e.what());

Trc_JITServerStreamVersionIncompatible(compThread, getCompThreadId(), __FUNCTION__, "", "", e.what());
Expand Down

0 comments on commit 5c297f7

Please sign in to comment.