United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5105922 : Linux build does not optimize AWT and other essential libraries

Details
Type:
Bug
Submit Date:
2004-09-23
Status:
Resolved
Updated Date:
2009-04-02
Project Name:
JDK
Resolved Date:
2004-12-22
Component:
infrastructure
OS:
linux
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
The optimization flags in Defs-linux.gmk are only applied for the "java"
product which means that any libraries built in the make/sun tree will be
compiled with no optimizations.

This includes, among other things, nearly all of the rendering code in the
JDK, built from directories sun/dcpr and sun/awt.  The Makefile for the
medialib support library in sun/image/generic is the only directory that
manually enables the optimization flags.

Many of the subdirectories of make/java also specify "sun" as their
PRODUCT and thus are not optimized.

                                    

Comments
EVALUATION

Setting LOWER OPT for non-java libraries to -O2 by default.

The -O2 level should be the default and should be safe in general.

Libraries wanting higher than -O3 or non-java libraries wanting higher
than -O2 will need to change the value of _OPT.
I'll see if I can clean this up a bit.

###@###.### 2004-11-24 01:16:47 GMT

Alacrity runs show minor improvements with the use of -O2 on the client
benchmarks.

###@###.### 2004-12-15 21:56:57 GMT
                                     
2004-11-24



Hardware and Software, Engineered to Work Together