[Bug java/58669] New: does not detect all cpu cores/threads

folkert at vanheusden dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 9 15:54:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58669

            Bug ID: 58669
           Summary: does not detect all cpu cores/threads
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
          Assignee: unassigned at gcc dot gnu.org
          Reporter: folkert at vanheusden dot com

Created attachment 30970
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30970&action=edit
example code

When a java program compiled with gcj asks how many processing units are in the
system, it always returns 1.

folkert@belle:~$ cat test2.java
class test2 {
        public static void main(String [] args) {
                System.out.println("" +
Runtime.getRuntime().availableProcessors());
        }
}
folkert@belle:~$ javac test2.java
folkert@belle:~$ java test2
12
folkert@belle:~$ gcj --main=test2 test2.java
folkert@belle:~$ ./a.out
1



More information about the Java-prs mailing list