001/*
002 *  This file is part of the Jikes RVM project (http://jikesrvm.org).
003 *
004 *  This file is licensed to You under the Eclipse Public License (EPL);
005 *  You may not use this file except in compliance with the License. You
006 *  may obtain a copy of the License at
007 *
008 *      http://www.opensource.org/licenses/eclipse-1.0.php
009 *
010 *  See the COPYRIGHT.txt file distributed with this work for information
011 *  regarding copyright ownership.
012 */
013package org.mmtk.plan;
014
015import org.mmtk.policy.ImmortalSpace;
016import org.mmtk.utility.heap.VMRequest;
017
018/**
019 * This interface provides an immortal allocation space for GCspy objects.<p>
020 *
021 * TODO constant interfaces are bad practice. Converting this to a class does
022 * not seem to be the right thing to do because it does not fit well with the
023 * current MMTk architecture and the plan concept. It's probably best to fix
024 * this up if we get around to updating GCSpy.
025 */
026@Deprecated
027public interface GCspyPlan {
028
029  /**
030   * Any GCspy objects allocated after booting are allocated
031   * in a separate immortal space.
032   */
033  ImmortalSpace gcspySpace = new ImmortalSpace("gcspy", VMRequest.discontiguous());
034
035  /** The descriptor for the GCspy allocation space */
036  int GCSPY = gcspySpace.getDescriptor();
037}