<html>
<head>
<base href="http://icedtea.classpath.org/bugzilla/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - race condition in javac, taking all the CPU."
href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1222#c3">Comment # 3</a>
from <span class="vcard"><a class="email" href="mailto:bique.alexandre@gmail.com" title="Alexandre Bique <bique.alexandre@gmail.com>"> <span class="fn">Alexandre Bique</span></a>
</span></b>
<pre>Well, to me it looks like the parser is multithreaded and uses a
producer/consumer design pattern.
I have the feeling that this producer/consumer is not very well implemented and
tries to use wait-free and weird stuff, that's why we end up with a race.
When I strace java, I get a lot of sched_yield() and futex() stuff.
I really think that you should try to find some pthread_mutex_try_lock() in the
compiler source code, and review their usage.
Also I think the race comes from the parser and I don't know the java source
code, but I would bet that the parser is shared by the sun vm and this one as
the bug also triggers with the sun jdk.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>