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.utility.statistics.Timer; 016import org.mmtk.utility.Log; 017 018import org.vmmagic.pragma.*; 019 020/** 021 * Phases of a garbage collection. 022 */ 023@Uninterruptible 024public final class SimplePhase extends Phase { 025 /**************************************************************************** 026 * Instance fields 027 */ 028 029 /** 030 * Construct a phase given just a name and a global/local ordering 031 * scheme. 032 * 033 * @param name The name of the phase 034 */ 035 protected SimplePhase(String name) { 036 super(name); 037 } 038 039 /** 040 * Construct a phase, re-using a specified timer. 041 * 042 * @param name Display name of the phase 043 * @param timer Timer for this phase to contribute to 044 */ 045 protected SimplePhase(String name, Timer timer) { 046 super(name, timer); 047 } 048 049 @Override 050 protected void logPhase() { 051 Log.write("SimplePhase("); 052 Log.write(name); 053 Log.write(")"); 054 } 055}