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.policy;
014
015import org.mmtk.utility.alloc.SegregatedFreeListLocal;
016
017import org.vmmagic.pragma.*;
018
019/**
020 * This class implements unsynchronized (local) elements of an
021 * explicitly managed collector.  Allocation is via the segregated free list
022 * (@see org.mmtk.utility.alloc.SegregatedFreeList).
023 *
024 * @see org.mmtk.utility.alloc.SegregatedFreeList
025 * @see ExplicitFreeListSpace
026 */
027@Uninterruptible
028public final class ExplicitFreeListLocal extends SegregatedFreeListLocal<ExplicitFreeListSpace> {
029
030  /****************************************************************************
031   *
032   * Class variables
033   */
034
035  /****************************************************************************
036   *
037   * Instance variables
038   */
039
040  /****************************************************************************
041   *
042   * Initialization
043   */
044
045  /**
046   * Constructor
047   *
048   * @param space The rc space to which this allocator
049   * instances is bound.
050   */
051  public ExplicitFreeListLocal(ExplicitFreeListSpace space) {
052    super(space);
053  }
054
055  /****************************************************************************
056   *
057   * Allocation
058   */
059
060  /****************************************************************************
061   *
062   * Collection
063   */
064
065  /**
066   * Prepare for a collection. If paranoid, perform a sanity check.
067   */
068  public void prepare() {
069    flush();
070  }
071
072  /**
073   * Finish up after a collection.
074   */
075  public void release() {}
076}