# HG changeset patch # User Christos Kotselidis # Date 1366884207 -7200 # Node ID 9a30199f7ff6f35fc55160875a58f2705c060b73 # Parent 05b8bfa400867ee3d2275be2fe97d9c831cdb0c5 Add comments to write barrier verification tests diff -r 05b8bfa40086 -r 9a30199f7ff6 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierVerificationTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierVerificationTest.java Thu Apr 25 11:56:48 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierVerificationTest.java Thu Apr 25 12:03:27 2013 +0200 @@ -38,6 +38,13 @@ import com.oracle.graal.phases.graph.ReentrantNodeIterator.*; import com.oracle.graal.phases.tiers.*; +/** + * The following tests validate the write barrier verification phase. For every tested snippet, an + * array of write barrier indices and the total write barrier number are passed as parameters. The + * indices denote the barriers that will be manually removed. The write barrier verification phase + * runs after the write barrier removal and depending on the result an assertion might be generated. + * The tests anticipate or not the presence of an assertion generated by the verification phase. + */ public class WriteBarrierVerificationTest extends GraalCompilerTest { public static int barrierIndex;