Skip to content

Commit

Permalink
Merge pull request #16504 from mpirvu/idlefix
Browse files Browse the repository at this point in the history
Exit DEEPIDLE state when two threads are active
  • Loading branch information
dsouzai authored Jan 4, 2023
2 parents a2475ea + 95df1bb commit 11f8777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/compiler/control/HookedByTheJit.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2022 IBM Corp. and others
* Copyright (c) 2000, 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 @@ -5740,7 +5740,7 @@ void samplerThreadStateLogic(TR::CompilationInfo *compInfo, TR_FrontEnd *fe, int
break;

case TR::CompilationInfo::SAMPLER_DEEPIDLE: // we may go IDLE or directly DEFAULT
if (numActiveThreads > 2)
if (numActiveThreads >= 2)
{
newSamplerState = TR::CompilationInfo::SAMPLER_DEFAULT;
jitConfig->samplingFrequency = TR::Options::getCmdLineOptions()->getSamplingFrequency();
Expand Down

0 comments on commit 11f8777

Please sign in to comment.