Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Manipulate java...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 772 of 803
Post > Topic >>

Manipulate java thread stack in this way

by Yao Qi <qiyaoltc@[EMAIL PROTECTED] > May 29, 2007 at 01:28 AM

We are doing byte code instrumentation, and at one moment (before call a
method, o.f(long);), the stack layout of our program thread is shown as
follows,

   top-->   +--------+
            |  long  |
            +--------+
            | Object |
            +--------+
            |  ...   | 

we want to transform this stack layout to this, shown as follows,


   top-->   +--------+
            | Object |
            +--------+
            |  long  |
            +--------+
            | Object |
            +--------+
            | Object |
            +--------+
            |  ...   | 

I read the JVM spec on byte code instructions from

http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc3.html

but I still could not find a byte code sequence to transform stack
layout in this way.

Could anybody here give some advice on this problem?  Thanks.

-- 
Yao Qi <qiyaoltc@[EMAIL PROTECTED]
>    GNU/Linux Developer
http://duewayqi.googlepages.com/

Yevtushenko has... an ego that can crack crystal at a distance of twenty
feet.
		-- John Cheever




 2 Posts in Topic:
Manipulate java thread stack in this way
Yao Qi <qiyaoltc@[EMAI  2007-05-29 01:28:55 
Re: Manipulate java thread stack in this way
Tom Hawtin <usenet@[EM  2007-05-28 23:25:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:05:51 CDT 2008.