public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/58669] New: does not detect all cpu cores/threads
@ 2013-10-09 15:54 folkert at vanheusden dot com
  2013-10-09 16:27 ` [Bug java/58669] " gnu_andrew at member dot fsf.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: folkert at vanheusden dot com @ 2013-10-09 15:54 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-10-18  1:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-09 15:54 [Bug java/58669] New: does not detect all cpu cores/threads folkert at vanheusden dot com
2013-10-09 16:27 ` [Bug java/58669] " gnu_andrew at member dot fsf.org
2013-10-09 16:35 ` gnu_andrew at member dot fsf.org
2013-10-09 16:36 ` folkert at vanheusden dot com
2013-10-09 18:36 ` gnu_andrew at member dot fsf.org
2013-10-09 18:36 ` gnu_andrew at member dot fsf.org
2013-10-18  1:17 ` gnu_andrew at member dot fsf.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).