United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6472143 extend CompilerOracle with per compile flags
JDK-6472143 : extend CompilerOracle with per compile flags

Details
Type:
Enhancement
Submit Date:
2006-09-18
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2006-11-14
Component:
hotspot
OS:
solaris_9
Sub-Component:
compiler
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10 (b03)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Often when making changes in the compiler it can be useful to have flags that are set for particular compiles as a way to narrow down the cause of performance differences.  It's also useful for experimentation since you can special behaviour.  This similar to the print command in the CompilerOracle but generalized to arbitrary strings.  It can be used to wrap around existing compilation flags or to make up new flags as needed during development.

                                    

Comments
EVALUATION

Added a new syntax in the oracle like so:

option java/lang/String hashCode foo

Then in the VM if you have a methodOop or ciMethod that refers to String.hashCode you can say method->has_option("foo") and it will return true
                                     
2006-09-18
SUGGESTED FIX

http://analemma.sfbay.sun.com/net/prt-archiver.sfbay/data/archived_workspaces/main/c2_baseline/2006/20060919162924.never.options/workspace/webrevs/webrev-2006.09.19/index.html
                                     
2006-09-20



Hardware and Software, Engineered to Work Together