diff options
author | Kyle Galloway <kgallowa@redhat.com> | 2007-02-15 14:49:50 +0000 |
---|---|---|
committer | Kyle Galloway <kgallowa@gcc.gnu.org> | 2007-02-15 14:49:50 +0000 |
commit | fc01261a60ff3e7643ff663950020505a6d659d0 (patch) | |
tree | b6fcfec2b20b166cb494d556988e1edde4624e05 /libjava/testsuite/libjava.jvmti/interp/getlocalvartable.java | |
parent | 02bba3c4176fe3c6055a149d75ad8694a9c01e51 (diff) | |
download | gcc-fc01261a60ff3e7643ff663950020505a6d659d0.zip gcc-fc01261a60ff3e7643ff663950020505a6d659d0.tar.gz gcc-fc01261a60ff3e7643ff663950020505a6d659d0.tar.bz2 |
natVMVirtualMachine (getFrames): Implement.
2007-02-15 Kyle Galloway <kgallowa@redhat.com>
* gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement.
From-SVN: r121997
Diffstat (limited to 'libjava/testsuite/libjava.jvmti/interp/getlocalvartable.java')
-rw-r--r-- | libjava/testsuite/libjava.jvmti/interp/getlocalvartable.java | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.jvmti/interp/getlocalvartable.java b/libjava/testsuite/libjava.jvmti/interp/getlocalvartable.java new file mode 100644 index 0000000..e0f3b31 --- /dev/null +++ b/libjava/testsuite/libjava.jvmti/interp/getlocalvartable.java @@ -0,0 +1,63 @@ +public class getlocalvartable +{ + public boolean done = false; + + // num_frames is the number of frames > the original run () call so if + // num_frames = 1, the thread will have 2 frames, the original Thread.run + // call, plus one additional + public int num_frames, thread_num; + + public static int num_threads = 1; + + static + { + System.loadLibrary("natgetlocalvartable"); + } + + public double aMethod (float pone, float ptwo) + { + float fone, ftwo; + double done, dtwo; + + fone = pone; + ftwo = 2 * ptwo; + + done = 5 * fone; + dtwo = 6 * ftwo; + + return done + dtwo; + } + + public long bMethod (int ipone, int iptwo) + { + int ione, itwo; + long lone, ltwo; + + ione = ipone; + itwo = 5 * iptwo; + + lone = ione; + ltwo = 8 * itwo; + + return lone + ltwo; + } + + public Object cMethod (Object op) + { + Object oone, otwo; + oone = op; + otwo = oone; + oone = null; + + return otwo; + } + + public static native int do_getlocalvartable_tests (); + + public static void main (String[] args) + { + System.out.println ("JVMTI getlocalvartable Interpreted Test"); + + do_getlocalvartable_tests (); + } +} |