/*
 *  This file is part of the Jikes RVM project (http://jikesrvm.org).
 *
 *  This file is licensed to You under the Eclipse Public License (EPL);
 *  You may not use this file except in compliance with the License. You
 *  may obtain a copy of the License at
 *
 *      http://www.opensource.org/licenses/eclipse-1.0.php
 *
 *  See the COPYRIGHT.txt file distributed with this work for information
 *  regarding copyright ownership.
 */
package org.mmtk.utility.options;

/**
 * Should we use a generational approach to cycle detection?
 */
public final class GenCycleDetection extends org.vmutil.options.BooleanOption {
  /**
   * Create the option.
   */
  public GenCycleDetection() {
    super(Options.set, "Gen Cycle Detection",
          "Should we use a generational approach to cycle detection?",
          false);
  }
}
