This is the mail archive of the java-patches@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: [RFA] JVMTI Agent Loading


>>>>> "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 


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