Skip to content

Commit

Permalink
Print Version Incompatible message at client and server if JITServerL…
Browse files Browse the repository at this point in the history
…ogConnection specified

Closes: ##16679
Signed-off-by: Sajina Kandy <sajina.kandy@ibm.com>
  • Loading branch information
SajinaKandy committed Feb 8, 2023
1 parent 9b4e1f2 commit b109001
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 b109001

Please sign in to comment.