code: static GcType getGcType(String name) {
      GcType t = KNOWN_COLLECTOR_NAMES.get(name);
      return (t == null) ? GcType.UNKNOWN : t;
    }
docs: Determine the type, old or young, based on the name of the collector.