Re: [OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-19 Thread Charles Lee
On 03/16/2012 04:06 PM, Steve Poole wrote: On 14/03/2012 13:00, Phil Race wrote: On 3/13/12 10:13 PM, Charles Lee wrote: Hi Phil, I guess it is "sun.font.StrikeCache.getStrikeRef(null);" "getStrikeRef" is a public api from a public class in a not so public package.:-) No, its not a public

Re: [OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-16 Thread Steve Poole
On 14/03/2012 13:00, Phil Race wrote: On 3/13/12 10:13 PM, Charles Lee wrote: Hi Phil, I guess it is "sun.font.StrikeCache.getStrikeRef(null);" "getStrikeRef" is a public api from a public class in a not so public package.:-) No, its not a public API. Its internal and private to the JDK. A

Re: [OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-14 Thread Charles Lee
OK. Thanks Phil. On 03/14/2012 09:00 PM, Phil Race wrote: On 3/13/12 10:13 PM, Charles Lee wrote: Hi Phil, I guess it is "sun.font.StrikeCache.getStrikeRef(null);" "getStrikeRef" is a public api from a public class in a not so public package.:-) No, its not a public API. Its internal and

Re: [OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-14 Thread Phil Race
On 3/13/12 10:13 PM, Charles Lee wrote: Hi Phil, I guess it is "sun.font.StrikeCache.getStrikeRef(null);" "getStrikeRef" is a public api from a public class in a not so public package.:-) No, its not a public API. Its internal and private to the JDK. Any app calling it directly gets what it

Re: [OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-13 Thread Charles Lee
Hi Phil, I guess it is "sun.font.StrikeCache.getStrikeRef(null);" "getStrikeRef" is a public api from a public class in a not so public package.:-) Here is the story: The problem is emitted from one of our VM classloading robust test case. The patch is trivial, but since it will cause VM cr

Re: [OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-13 Thread Phil Race
Do you have a public API level program that exhibits this ? I don't consider the internal test you provide as a valid execution path that needs this attention. -phil. On 3/13/12 12:16 AM, Charles Lee wrote: Hi guys, I have create a sunbug @ http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=

Re: [OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-13 Thread Charles Lee
Thanks Andrew. Anyone else interested in it? I need another sponsor. :-) On 03/13/2012 04:23 PM, Andrew Brygin wrote: Hi Charles, The fix looks fine to me. Thanks, Andrew On 13.03.2012 11:16, Charles Lee wrote: Hi guys, I have create a sunbug @ http://bugs.sun.com/bugdatabase/view_bug.d

Re: [OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-13 Thread Andrew Brygin
Hi Charles, The fix looks fine to me. Thanks, Andrew On 13.03.2012 11:16, Charles Lee wrote: Hi guys, I have create a sunbug @ http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7153293 It is mainly about: When loading sun.font.StrikeCache before sun.font.SunFontManager (or something el

[OpenJDK 2D-Dev] Segment fault when loading sun.font.StrikeCache at first

2012-03-13 Thread Charles Lee
Hi guys, I have create a sunbug @ http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7153293 It is mainly about: When loading sun.font.StrikeCache before sun.font.SunFontManager (or something else), there will be an UnsatisfiedLinkError thrown. The reason is there is a native call in its sta