static boolean isTenured(MemoryPoolMXBean memoryPoolMXBean){
  if (memoryPoolMXBean.getType() != MemoryType.HEAP) {
    return false;
  }
  String name=memoryPoolMXBean.getName();
  return name.equals("CMS Old Gen") || name.equals("PS Old Gen") || name.equals("G1 Old Gen")|| name.equals("Old Space")|| name.equals("Tenured Gen")|| name.equals("Java heap")|| name.equals("GenPauseless Old Gen")|| (HEAP_POOL != null && name.equals(HEAP_POOL));
}

static boolean isTenured ( MemoryPoolMXBean memoryPoolMXBean ) { if ( memoryPoolMXBean . getType ( ) != MemoryType . HEAP ) { return false ; } String name = memoryPoolMXBean . getName ( ) ; return name . equals ( "CMS Old Gen" ) || name . equals ( "PS Old Gen" ) || name . equals ( "G1 Old Gen" ) || name . equals ( "Old Space" ) || name . equals ( "Tenured Gen" ) || name . equals ( "Java heap" ) || name . equals ( "GenPauseless Old Gen" ) || ( HEAP_POOL != null && name . equals ( HEAP_POOL ) ) ; }
determines if the name of the memory pool mxbean provided matches a list of known tenured pool names . package private for testing .
