JDK-4490864 : (Startup) First-time reflective static field access should be fast
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_7,solaris_8
  • CPU: sparc
  • Submitted: 2001-08-10
  • Updated: 2013-11-01
  • Resolved: 2001-08-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 beta3Fixed
Related Reports
Duplicate :  
Relates :  
Description
Swing uses reflection to access values for it's key bindings. Under the new reflection mechanism this causes ~40 classes to be generated -- which slows application startup.  The mechanism to access these fields could be changed to use a new "unsafe" entry point.  This should speed up first-time access to static files, and improve Swing startup time.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta3 FIXED IN: merlin-beta3 INTEGRATED IN: merlin-beta3
14-06-2004

EVALUATION Added sun.misc.Unsafe.staticFieldBase() on suggestion of John.Rose@eng and added Unsafe-based field accessor implementations for static fields. See 4493578 for a microbenchmark test case. This change will be present in Merlin build 78. ###@###.### 2001-08-24
24-08-2001