changeset 9398:9a30199f7ff6

Add comments to write barrier verification tests
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Thu, 25 Apr 2013 12:03:27 +0200
parents 05b8bfa40086
children 25c2e9b29e97
files graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierVerificationTest.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;