Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (472)
Games in Android Showcase (105)
games submitted by our members
Games in WIP (524)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Beware of Java 7u4, 7u5, 7u6(rc), don't run it in production.  (Read 4008 times)
0 Members and 1 Guest are viewing this topic.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 728
Projects: 4
Exp: 16 years


Hand over your head.


« Posted 2012-06-21 16:11:38 »

Sensationalistic topic title is sensationalistic.

http://riven8192.blogspot.com/2012/06/hotspot-bug-in-java-7u4-7u5-7u6rc-with.html

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline nsigma
« Reply #1 - Posted 2012-06-21 16:18:20 »

Out of interest, what circumstances led you to find it - assuming you don't spend all day writing random String concatenation routines?  Wink

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 728
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #2 - Posted 2012-06-21 16:23:34 »

I was rendering the 'fps' to the screen in LWJGL:
1  
String s = "Framerate: "+framerate+"fps";


I needed to benchmark the text-rendering performance, so I repeated the text:
1  
2  
3  
s = s + s;
s = s + s;
s = s + s;


After a few thousand frames, I saw this on the screen:
1  
"nullnullFramerate: 60fpsFramerate: 60fps"


and I was like >>> persecutioncomplex >>> Shocked >>> Grin

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Roquen
« Reply #3 - Posted 2012-06-21 16:59:23 »

Good find.  Did you fill a report?
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 728
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #4 - Posted 2012-06-21 17:11:57 »

Good find.  Did you fill a report?
yeah, but at the time (about a week ago) i didn't know that the bug was only triggered with the eclipse compiler. I just found out about that, so i investigated the differences between the bytecode of eclipse and javac. After modifying the sourcecode accordingly, i managed to get the output of javac to crash too. Unfortunately i cannot update my bugreport, so i will probably get a could-not-reproduce within a few weeks.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline princec

JGO Kernel


Medals: 334
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #5 - Posted 2012-06-21 19:20:05 »

Hmm that is a pretty serious bug. Wonder why it hasn't already been spotted?

Cas Smiley

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 728
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #6 - Posted 2012-06-21 19:28:43 »

Hmm that is a pretty serious bug. Wonder why it hasn't already been spotted?

Cas Smiley
the problem is triggered by the empty loop. It's rather uncommon to have that in your code, so my guess us that hotspot incorrently threats some operations as dead code.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Roquen
« Reply #7 - Posted 2012-06-21 23:09:52 »

If you were motivated you could always email the report to the hotspot developer mailing list.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 728
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #8 - Posted 2012-06-21 23:42:53 »

If you were motivated you could always email the report to the hotspot developer mailing list.
Thanks for the suggestion. About an hour ago I received a similar PM from krausest, so I submitted the issue on the mailing list a few minutes ago Smiley

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline badlogicgames
« Reply #9 - Posted 2012-06-22 00:17:41 »

... threats ...

OMG, YOU MISSSPELLEDED A WORDZ!

http://www.badlogicgames.com - musings on Android and Java game development
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 728
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #10 - Posted 2012-06-22 00:31:08 »

That usually never happens, but when it does, it leaves a phrase.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Online Spasi
« Reply #11 - Posted 2012-07-06 14:42:26 »

Looks like it's been fixed in jdk7u6 b17.
Offline ra4king

JGO Kernel


Medals: 336
Projects: 2
Exp: 5 years


I'm the King!


« Reply #12 - Posted 2012-07-06 14:51:24 »

Whoa, look at all those bugs they're fixing, and there's more when you change the 'bXX' numbers! Those Java devs are working harder than I thought Tongue

Offline sproingie

JGO Kernel


Medals: 201



« Reply #13 - Posted 2012-07-06 21:32:22 »

yeah it's almost like they pay people to work on it full-time or something ...
Offline gimbal

JGO Knight


Medals: 25



« Reply #14 - Posted 2012-07-09 10:22:43 »

yeah it's almost like they pay people to work on it full-time or something ...


Wouldn't surprise me if most of the fixes come from community soldiers though and not people actually under Oracle employment.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (19 views)
2014-07-10 20:20:18

CopyableCougar4 (21 views)
2014-07-10 02:26:14

CopyableCougar4 (28 views)
2014-07-09 02:55:38

Code Mage (28 views)
2014-07-08 23:57:00

Code Mage (14 views)
2014-07-08 23:49:08

AppleSauce (24 views)
2014-07-08 19:25:32

CopyableCougar4 (24 views)
2014-07-06 01:51:26

ipe369 (29 views)
2014-07-05 14:18:25

vastrolorde (40 views)
2014-07-04 18:45:44

theagentd (57 views)
2014-07-02 22:19:37
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!