This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Someone registers thousands of Object's and MethodRef's (was/is: gc times doubling)


15179 of 21504 entries are non-null (points inside feasable heap-region)
6326 elements are of class "gnu.gcj.runtime.MethodRef"
8854 elements are of class "java.lang.Object"
Now, that's many MethodRef's!

The MethodRefs are used in the generation of stack traces. libgcj keeps a cache of them so that printing of stack traces is faster.

I think that each time each time an exception is thrown the cache can grow. Thus your array keeps getting bigger.

But 6000? That's really a huge number of methods, right!
This array of 21504 is being registered after almost no time after application-start - we talk seconds - before anything has really happened...


// Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]