Re: Re: Instrumentation in native code
Prashant Deva <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <CAEg0NFZvG-9zgLdztrCwQdsGD-zDmCHX1DxoVScDjh-3=r9m_A@mail.gmail.com> |
Eugene, Are you referring to the java_crw_demo mentioned here ? http://blogs.oracle.com/kto/entry/a_short_java_crw_demo Prashant On Sun, Oct 9, 2011 at 8:10 PM, Eugene Kuleshov <[email protected]> wrote: > Prashant, > > This is kinda wrong mailing list to ask such question... but there > is a sample in JDK for bytecode instrumentation in C. > > An alternative approach would be to instrument JRE classes > statically and then prepend those classes to the bootstrap classpath. > > regards, > Eugene > > > On Sun, Oct 9, 2011 at 3:54 PM, Prashant Deva <[email protected]> > wrote: > > I was wondering if there is a bytecode instrumentation library similar to > > asm for C/C++. > > Since ASM is written in Java, it can only be used within a javaagent. > > This limits its ability to instrument classes loaded before the java > agent > > loads. > > For example, we would like to add fields to the java.lang.Thread class. > > This can only be done through a native agent, since by the time the > > javaagent loads, the Thread class is already loaded and thus we cannot > add > > fields to it. > > Prashant > > > -- > You receive this message as a subscriber of the [email protected] mailing list. > To unsubscribe: mailto:[email protected] > For general help: mailto:[email protected]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > >
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws