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