From: <dfr...@us...> - 2008-08-08 05:33:11
|
Revision: 14851 http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=14851&view=rev Author: dframpton-oss Date: 2008-08-08 05:33:08 +0000 (Fri, 08 Aug 2008) Log Message: ----------- Fix formatting Modified Paths: -------------- rvmroot/trunk/MMTk/src/org/mmtk/plan/Plan.java Modified: rvmroot/trunk/MMTk/src/org/mmtk/plan/Plan.java =================================================================== --- rvmroot/trunk/MMTk/src/org/mmtk/plan/Plan.java 2008-08-08 02:29:16 UTC (rev 14850) +++ rvmroot/trunk/MMTk/src/org/mmtk/plan/Plan.java 2008-08-08 05:33:08 UTC (rev 14851) @@ -1006,45 +1006,45 @@ return false; } - /**************************************************************************** - * Support for logging bits (this is cross-cutting). - */ + /**************************************************************************** + * Support for logging bits (this is cross-cutting). + */ - /** - * Return true if the specified object needs to be logged. - * - * @param src The object in question - * @return True if the object in question needs to be logged (remembered). - */ - public static final boolean logRequired(ObjectReference src) { - int value = VM.objectModel.readAvailableByte(src); - return !((value & LOG_SET_MASK.toInt()) == 0); - } + /** + * Return true if the specified object needs to be logged. + * + * @param src The object in question + * @return True if the object in question needs to be logged (remembered). + */ + public static final boolean logRequired(ObjectReference src) { + int value = VM.objectModel.readAvailableByte(src); + return !((value & LOG_SET_MASK.toInt()) == 0); + } - /** - * Mark an object as logged. Since duplicate logging does - * not raise any correctness issues, we do <i>not</i> worry - * about synchronization and allow threads to race to log the - * object, potentially including it twice (unlike reference - * counting where duplicates would lead to incorrect reference - * counts). - * - * @param object The object to be marked as logged - */ - public static final void markAsLogged(ObjectReference object) { - int value = VM.objectModel.readAvailableByte(object); - VM.objectModel.writeAvailableByte(object, (byte) (value & LOG_CLEAR_MASK.toInt())); - } + /** + * Mark an object as logged. Since duplicate logging does + * not raise any correctness issues, we do <i>not</i> worry + * about synchronization and allow threads to race to log the + * object, potentially including it twice (unlike reference + * counting where duplicates would lead to incorrect reference + * counts). + * + * @param object The object to be marked as logged + */ + public static final void markAsLogged(ObjectReference object) { + int value = VM.objectModel.readAvailableByte(object); + VM.objectModel.writeAvailableByte(object, (byte) (value & LOG_CLEAR_MASK.toInt())); + } - /** - * Mark an object as unlogged. - * - * @param object The object to be marked as unlogged - */ - public static final void markAsUnlogged(ObjectReference object) { - int value = VM.objectModel.readAvailableByte(object); - VM.objectModel.writeAvailableByte(object, (byte) (value | UNLOGGED_BIT.toInt())); - } + /** + * Mark an object as unlogged. + * + * @param object The object to be marked as unlogged + */ + public static final void markAsUnlogged(ObjectReference object) { + int value = VM.objectModel.readAvailableByte(object); + VM.objectModel.writeAvailableByte(object, (byte) (value | UNLOGGED_BIT.toInt())); + } /**************************************************************************** * Specialized Methods This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |