[Bug java/23283] Sun's JIT faster than gcc for Random.nextDouble

2016-09-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23283 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug java/23283] Sun's JIT faster than gcc for Random.nextDouble

2005-08-23 Thread bonzini 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 s

[Bug java/23283] Sun's JIT faster than gcc for Random.nextDouble

2005-08-23 Thread bonzini at gcc dot gnu dot org
--- Additional Comments From bonzini at gcc dot gnu dot org 2005-08-23 14:48 --- Yes, I think that most invocations of next should be inlined, and wrapped in a single synchronized block. Apart from that, I am pretty sure that here seed = (seed * 0x5DEECE66DL + 0xBL) & ((1L << 48) -

[Bug java/23283] Sun's JIT faster than gcc for Random.nextDouble

2005-08-23 Thread mark at klomp dot org
--- Additional Comments From mark at klomp dot org 2005-08-23 14:31 --- Subject: Re: Sun's JIT faster than gcc for Random.nextDouble It looks like the problem is that we don't remove the synchronization for nextDouble() even though the test case is single-threaded. qprof: /tmp/

[Bug java/23283] Sun's JIT faster than gcc for Random.nextDouble

2005-08-23 Thread tromey at gcc dot gnu dot org
--- Additional Comments From tromey at gcc dot gnu dot org 2005-08-23 14:15 --- I see this too. Compiling with -fno-bounds-check helps, but not enough. One possibility is simply that our implementation of nextDouble is inefficient. I doubt this function was coded for maximum performan

[Bug java/23283] Sun's JIT faster than gcc for Random.nextDouble

2005-08-08 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Summary|Sun's JIT faster than gcc |Sun's JIT faster than gcc ||for Random.nextDouble http://gcc.gn