code: private boolean isTraceEnabled(boolean debug) // d581579
      {
          if (debug ? tc.isDebugEnabled() : tc.isEntryEnabled())
          {
              return true;
          }
  
          if (ivCache.numSweeps % NUM_SWEEPS_PER_OOMTRACE == 1 &&
              (debug ? tcOOM.isDebugEnabled() : tcOOM.isEntryEnabled()))
          {
              return true;
          }
  
          return false;
      }
docs: Returns true if trace should be printed.