From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15450 invoked by alias); 9 Oct 2013 15:54:01 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 15427 invoked by uid 48); 9 Oct 2013 15:54:01 -0000 From: "folkert at vanheusden dot com" To: java-prs@gcc.gnu.org Subject: [Bug java/58669] New: does not detect all cpu cores/threads Date: Wed, 09 Oct 2013 15:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: folkert at vanheusden dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00001.txt.bz2 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