# HG changeset patch # User Doug Simon # Date 1402651877 -7200 # Node ID 69220322bc1434c7d856369d99a5996849b56056 # Parent 32ddc8096f4c001ad4b0be5b5040249672952709 show array lengths in allocation records produced by AllocSpy diff -r 32ddc8096f4c -r 69220322bc14 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/AllocSpy.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/AllocSpy.java Fri Jun 13 09:06:06 2014 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/AllocSpy.java Fri Jun 13 11:31:17 2014 +0200 @@ -39,11 +39,11 @@ * trace is governed by the value of the "AllocSpy.ContextSize" system property (default is 5). *

* Using this facility requires using -javaagent on the command line. For example: - * + * *

  * mx --vm server unittest -javaagent:lib/java-allocation-instrumenter.jar -dsa -DAllocSpy.ContextSize=6 BC_iadd2
  * 
- * + * * @see #SampleBytes * @see #SampleInstances * @see #HistogramLimit @@ -237,8 +237,8 @@ } else { if (!excludeFrame(className)) { sb.append("type=").append(desc); - if (count != 1) { - sb.append("[]"); + if (count != -1) { + sb.append('[').append(count).append(']'); } append(sb.append('\n'), e); }