This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/23283] Sun's JIT faster than gcc for Random.nextDouble
- From: "bonzini at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2005 14:51:43 -0000
- Subject: [Bug java/23283] Sun's JIT faster than gcc for Random.nextDouble
- References: <20050808100453.23283.netzberg@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bonzini at gcc dot gnu dot org 2005-08-23 14:51 -------
> It looks like the problem is that we don't remove the synchronization
> for nextDouble() even though the test case is single-threaded.
If we can remove even only half of the synchronization overhead, by
synchronizing just once per nextDouble() call, it's a win.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23283