United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6229122 -4% SwingMark regression in b15
6229122 : -4% SwingMark regression in b15

Details
Type:
Bug
Submit Date:
2005-02-14
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2005-04-30
Component:
client-libs
OS:
windows_xp
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
6

Related Reports
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
See Comments.
###@###.### 2005-2-14 23:40:15 GMT

                                    

Comments
EVALUATION

Windows fixes integrated:
Fixed 5066958: COMPATIBILITY: babel.altavista- Keyboard Translator applet- StackOverflowError 
Fixed 5089312: All undecorated toplevels should have zero insets, be it Frame or Dialog or Window. 
Fixed 6193715: Regression: AWT/NonFocusableTest and AWT/bat crashed Virtual Machine on Windows platforms) 
Fixed 5065001: awt TextArea crashes HotSpot on winXP when frame is closed 

Most likely candidate is 5065001 - we replaced a huge number of direct method calls on C++ objects (and Win32 API) with InvokeFunction, which is synchronous call to Toolkit thread.  The fix allows to address a big number of crashes (potential or reproducible), so the fix is valid and necessary.  However, in some cases synchronous calls can be replaced with asynchronous (when the result, explicit and implicit, is not important).
###@###.### 2005-2-15 12:12:32 GMT

The problem seems to be in switching to another (toolkit) thread to run all the code, that needs to be synchronized. Another way to synchronize the access to AWT native windows objects is to introduce a dedicated critical section and use it to run the code on user threads. This would keep the synchronization and doesn't require to switch to another thread.

###@###.### 2005-04-21 11:33:31 GMT
                                     
2005-02-15



Hardware and Software, Engineered to Work Together