diff options
author | Andrew Haley <aph@redhat.com> | 2016-09-30 16:24:48 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2016-09-30 16:24:48 +0000 |
commit | 07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch) | |
tree | 3f22b3241c513ad168c8353805614ae1249410f4 /libjava/testsuite/libjava.jvmti/getallthreads.java | |
parent | eae993948bae8b788c53772bcb9217c063716f93 (diff) | |
download | gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.zip gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.gz gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.bz2 |
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com>
* Makefile.def: Remove libjava.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.
* configure.ac: Likewise.
* configure: Likewise.
* gcc/java: Remove.
* libjava: Likewise.
From-SVN: r240662
Diffstat (limited to 'libjava/testsuite/libjava.jvmti/getallthreads.java')
-rw-r--r-- | libjava/testsuite/libjava.jvmti/getallthreads.java | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/libjava/testsuite/libjava.jvmti/getallthreads.java b/libjava/testsuite/libjava.jvmti/getallthreads.java deleted file mode 100644 index 00be3a75..0000000 --- a/libjava/testsuite/libjava.jvmti/getallthreads.java +++ /dev/null @@ -1,80 +0,0 @@ -// Test JVMTI GetAllThreads - -import java.util.ArrayList; - -public class getallthreads extends Thread -{ - public static int thread_num; - public static ArrayList threads; - - public int ex_frames; - public boolean done = false; - - public static native void do_getallthreads_tests (); - - public void run () - { - ex_frames = thread_num; - thread_num++; - - if (ex_frames > 0) - { - if ((ex_frames % 2) == 0) - placeholder (); - else - natPlaceholder (); - } - else - runner (); - } - - public native void natPlaceholder (); - public native void natRunner (); - - public void placeholder () - { - ex_frames--; - - if (ex_frames > 0) - { - if ((thread_num % 2) == 0) - placeholder (); - else - natPlaceholder (); - } - else - runner (); - } - - public void runner () - { - done = true; - while (done) - yield (); - } - - public static void main (String[] args) - { - System.out.println ("JVMTI GetAllThreads tests"); - threads = new ArrayList (20); - - getallthreads t; - - for (int i = 0; i < 20; i++) - { - t = new getallthreads (); - threads.add (t); - t.start (); - while (!t.done) - yield (); - } - - do_getallthreads_tests (); - - for (int i = 0; i < 20; i++) - { - t = (getallthreads) threads.get(i); - t.done = false; - } - } -} |