Re: [OpenJDK 2D-Dev] Review request for bug 100053

2009-10-01 Thread Jim Graham
I could go too ways on this. It looks like the code is looking to drop arrays that have grown so that it doesn't waste memory. Do we reuse these objects? If not, then the code can be deleted. If we do reuse them, then why not just set them to null and let them get recreated the next time r

Re: [OpenJDK 2D-Dev] Deadlock in SunGraphicsEnvironment / FontManager?

2009-10-01 Thread Phil Race
Jeremy Manson wrote: Does anyone have any thoughts about this? If we were to make up a patch, would you take it? In summary the situation looks like this, (although your dumps aren't showing the locks, which I'd expected to see) : Thread 1 -> SunGraphicsEnvironment.loadFonts()

Re: [OpenJDK 2D-Dev] Review request for bug 100053

2009-10-01 Thread Dmitri Trembovetski
Hi Roman, Roman Kennke wrote: Hi Dmitri, a comment about the test: would the bug reproduce if you just rendered into a BufferedImage? If so, no need for creating a frame and such. Oh yes. Stupid me :-) Regarding the fix, it looks ok - but there are other places in the code where t

Re: [OpenJDK 2D-Dev] Review request for bug 100053

2009-10-01 Thread Roman Kennke
Hi Dmitri, >a comment about the test: would the bug reproduce if you just rendered > into a > BufferedImage? If so, no need for creating a frame and such. Oh yes. Stupid me :-) >Regarding the fix, it looks ok - but there are other places in the code > where > the 'crossings' is acces

Re: [OpenJDK 2D-Dev] Review request for bug 100053

2009-10-01 Thread Dmitri Trembovetski
Hi Roman, a comment about the test: would the bug reproduce if you just rendered into a BufferedImage? If so, no need for creating a frame and such. Regarding the fix, it looks ok - but there are other places in the code where the 'crossings' is accessed - are those safe from an NPE?

[OpenJDK 2D-Dev] Review request for bug 100053

2009-10-01 Thread Roman Kennke
Hi guys, This patch here fixes the NPE in Pisces renderer as reported in: https://bugs.openjdk.java.net/show_bug.cgi?id=100053 The webrev is here: http://cr.openjdk.java.net/~rkennke/100053/webrev.00/ It basically adds nullchecks in the offending code. As far as I can see this should be suffic

Re: [OpenJDK 2D-Dev] Deadlock in SunGraphicsEnvironment / FontManager?

2009-10-01 Thread Jeremy Manson
Does anyone have any thoughts about this? If we were to make up a patch, would you take it? I did get an email about how this should all be single threaded on an event dispatcher thread, to which I would reply: 1) If it is all supposed to be single threaded, then there shouldn't be any locks in