On Wednesday 19 March 2003 07:10, Pier Fumagalli wrote:
> On 18/3/03 23:03, "Stefano Mazzocchi" <[EMAIL PROTECTED]> wrote:
> > Pier Fumagalli wrote:
> >> On 18/3/03 21:00, "Stefano Mazzocchi" <[EMAIL PROTECTED]> wrote:
> >>> I assume, but I'm not sure, that [xx are native internal objects, so
> >>> there is not much we can do about those. Still, I would like to know
> >>> what is that [10 object that accounts for so much memory.
> >>
> >> They should be (might be) arrays... As that's the way in which you
> >> define them in JNI (roughly).... And the number after that _should_ (but
> >> I ain't sure) the type of array that you're actually looking at. Should
> >> be one of:
> >>
> >> #define JVMPI_NORMAL_OBJECT              ((jint)0)
> >> #define JVMPI_CLASS                      ((jint)2)
> >> #define JVMPI_BOOLEAN                    ((jint)4)
> >> #define JVMPI_CHAR                       ((jint)5)
> >> #define JVMPI_FLOAT                      ((jint)6)
> >> #define JVMPI_DOUBLE                     ((jint)7)
> >> #define JVMPI_BYTE                       ((jint)8)
> >> #define JVMPI_SHORT                      ((jint)9)
> >> #define JVMPI_INT                        ((jint)10)
> >> #define JVMPI_LONG                       ((jint)11)
> >>
> >> You never _never_ have access to the JVM internal objects from any
> >> whatsoever possible pre-defined interface... And I tried... :-)
> >
> > Ah, gotcha.
> >
> > So, the question becomes: what allocates 500Kb of int arrays?
>
> Hmmm... I overlooked the fact that there was also a "[C", which to me
> strikes as a hex digit... So, you can also read that [10 as hex, which
> makes 16... So, I don't think it's an "int" array... It's a something-else
> array...
>
> IIRC, Scott Boag once told me that the DTM (the internal pseudo dom used by
> Xalan) is only a big huge array... Could that be the case?


Very likely char[] or byte[]. It could be at a very low level, such as Readers 
and InputStreams. How much buffer does BufferedInputStream allocate 
initially?

Niclas



Reply via email to