[Bug 1222] New: race condition in javac, taking all the CPU.

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Nov 19 07:03:33 PST 2012


          Priority: P3
            Bug ID: 1222
                CC: unassigned at icedtea.classpath.org
          Assignee: gnu.andrew at redhat.com
           Summary: race condition in javac, taking all the CPU.
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: bique.alexandre at gmail.com
          Hardware: x86_64
            Status: NEW
           Version: 7-1.14
         Component: IcedTea
           Product: IcedTea

The bug has been reported here, https://bugs.archlinux.org/task/32527.


There is a race condition with jdk7-openjdk 7.u9_2.3.3-1.
javac will take 1000% cpu to compile a simple conftest.java file.
It is a race condition in the "thread/safe" producer/consumer implementation as
strace shows some sched_yield() and futex().

Steps to reproduce:

# the loop is just here to run it some times and trigger the race
while true; do
  rm conftest.*
  echo 'class conftest {}' >conftest.java
  time javac -d . conftest.java

Note that I have 24 active cores, and I noted that the race triggers a lot more
when you have a lot of cores.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20121119/f6587ed1/attachment.html 

More information about the distro-pkg-dev mailing list