Finding the class represented by a Class instance
David Holmes - Sun Microsystems
David.Holmes at Sun.COM
Mon Aug 18 04:52:50 PDT 2008
Well it's in k of course! So my real problem is that I want to trace
Class object creation. But k->name()->as_C_string() crashes with a
SIGSEGV. So I made this conditional on Universe::is_fully_initialized(),
but it still crashes the first time I try to print the type name. It's
crashing inside as_C_string but I haven't determined exactly where.
I was kind of surprised there wasn't an existing flag to print Class
instance creations ... though now I'm wondering whether classloading
tracing will show the info I want ...
Will try again tomorrow
David Holmes - Sun Microsystems said the following on 08/18/08 21:29:
> In java_lang_Class::create_mirror(KlassHandle k, TRAPS) how can I
> determine for what type the java.lang.Class object is being created?
> David Holmes
More information about the hotspot-dev