[RFA] JVMTI Agent Loading

Tom Tromey tromey@redhat.com
Fri Mar 30 21:08:00 GMT 2007


>>>>> "Kyle" == Kyle Galloway <kgallowa@redhat.com> writes:

Kyle> The reason for this is that if the library is a C library, it will
Kyle> have unmangled names, but if the library is a C++ library the names
Kyle> will be mangled.

Yeah, but the declaration of Agent_OnLoad and Agent_OnUnload is
wrapped in 'extern "C"'... so I'd assume this case can't happen.

Kyle> Is it better to have sizeof("-agentlib:") - 1 to be more clear about
Kyle> what's happening or sizeof(agentlib) because it avoids the subtraction?

The first one I think.  Don't worry about the subtraction, the
compiler will fold this to a constant.

Tom 



More information about the Java-patches mailing list