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.jikesrvm.mm.mminterface;
014
015import org.mmtk.plan.CollectorContext;
016import org.vmmagic.pragma.Uninterruptible;
017
018/**
019 * RVMThread must extend this class to associate appropriate context with processor.
020 */
021@Uninterruptible
022public abstract class ThreadContext extends Selected.Mutator {
023  protected CollectorContext collectorContext;
024
025  public final CollectorContext getCollectorContext() {
026    return collectorContext;
027  }
028
029  public final boolean isCollectorThread() {
030    return collectorContext != null;
031  }
032}
033