Matty wrote:
> Howdy,
> 
> I am trying to use the hotspot provider's object-alloc probe to
> display the number of objects allocated, and the number of bytes
> associated with these objects. When I run the attached [1] DTrace
> script to capture this information, I periodically see classes named
> "[" followed by a character:
> 
> $ dtrace objects.d
>   [Ljava/lang/Object;                                          204216
>   java/util/HashMap$EntryIterator                              262656
>   [Ljava/lang/reflect/Field;                                   300000
>   java/lang/String                                             480864
>   java/lang/reflect/Field                                     1620000
>   [I                                                          1636752
>   [C                                                         11512240
>   [B                                                         15426184
> 
> Does anyone happen to know why some classes show up this way?
> 
> Thanks for any insight,
> - Ryan

Those are arrays.  "[I" is an array of 'int', "[Ljava/lang/Object;" is an array 
of objects, etc.  These are the standard Java signatures as described in the 
JVM 
Spec.

-- 
Keith McGuigan

Sun Microsystems, Inc.
1 Network Drive
Burlington, MA 10803 US
Phone (781)442-7368
Fax (781)442-1699
Email [EMAIL PROTECTED]
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to