Re: [rvm-research] Adding Runtime Extension

Eliot Moss <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
On 6/30/2014 12:13 PM, Matthew Ma wrote:
> Hi Elliot,
> Thanks for the reply.
> Could you be a little specific on what you mean by “With Jikes RVM you CAN add header fields”?
> With the help and suggestion from Rifat, I now can add a Word in MiscHeader (changed header size, misc offset..).
> The difficulty I have is how to process annotations annotated on method, and retrieve it to write into any object created in that method.

So, yes, you can add data in a miscellaneous header, but
bytecode cannot directly access it since it is not a "field"
in the Java sense.  To access it from bytecode you will need
to add some "native" (or "magic") routines, or perhaps call
existing "magic" routines, from bytecode to access the header
field for you.  (Native method go through JNI like other JVMs;
"magic" methods are recognized by all the bytecode compilers
in Jikes RVM and the compiler generates code for them directly.)

Does this make sense?

Best -- E

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.