getlocalvartable.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. public class getlocalvartable
  2. {
  3. public boolean done = false;
  4. // num_frames is the number of frames > the original run () call so if
  5. // num_frames = 1, the thread will have 2 frames, the original Thread.run
  6. // call, plus one additional
  7. public int num_frames, thread_num;
  8. public static int num_threads = 1;
  9. static
  10. {
  11. System.loadLibrary("natgetlocalvartable");
  12. }
  13. public double aMethod (float pone, float ptwo)
  14. {
  15. float fone, ftwo;
  16. double done, dtwo;
  17. fone = pone;
  18. ftwo = 2 * ptwo;
  19. done = 5 * fone;
  20. dtwo = 6 * ftwo;
  21. return done + dtwo;
  22. }
  23. public long bMethod (int ipone, int iptwo)
  24. {
  25. int ione, itwo;
  26. long lone, ltwo;
  27. ione = ipone;
  28. itwo = 5 * iptwo;
  29. lone = ione;
  30. ltwo = 8 * itwo;
  31. return lone + ltwo;
  32. }
  33. public Object cMethod (Object op)
  34. {
  35. Object oone, otwo;
  36. oone = op;
  37. otwo = oone;
  38. oone = null;
  39. return otwo;
  40. }
  41. public static native int do_getlocalvartable_tests ();
  42. public static void main (String[] args)
  43. {
  44. System.out.println ("JVMTI getlocalvartable Interpreted Test");
  45. do_getlocalvartable_tests ();
  46. }
  47. }