United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7117389 Add a framework for vendor-specific command line switch extensions to Hotspot
JDK-7117389 : Add a framework for vendor-specific command line switch extensions to Hotspot

Details
Type:
Enhancement
Submit Date:
2011-12-02
Status:
Closed
Updated Date:
2012-03-22
Project Name:
JDK
Resolved Date:
2012-01-20
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs23
Fixed Versions:
hs23 (b08)

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
Oracle, and perhaps Java source licensees, would like to add command line switches
to Hotspot that are vendor-specific.  To this end, a framework for doing so is needed.

                                    

Comments
SUGGESTED FIX

The basic idea is to add vendor-specific implementation hooks to globals.hpp,
globals.cpp and globals_extension.hpp.  The hooks live in globals_ext.hpp,
of which there are two versions, one in src/share/vm/runtime that's
a null implementation of the hooks, and another in vendor-specific code.

The hooks in globals_ext.hpp look like this.

// globals_extension.hpp extension

// Additional CommandLineFlags enum values
#define COMMANDLINEFLAG_EXT

// Additional CommandLineFlagsWithType enum values
#define COMMANDLINEFLAGWITHTYPE_EXT


// globals.cpp extension

// Additional flag definitions
#define MATERIALIZE_FLAGS_EXT

// Additional flag descriptors: see flagTable definition
#define FLAGTABLE_EXT


// Default method implementations

inline bool Flag::is_unlocker_ext() const {
  return false;
}

inline bool Flag::is_unlocked_ext() const {
  return true;
}
                                     
2011-12-02
EVALUATION

Ok.
                                     
2011-12-02
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/cd00eaeebef6
                                     
2011-12-05
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/cd00eaeebef6
                                     
2011-12-15
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/cd00eaeebef6
                                     
2012-03-22



Hardware and Software, Engineered to Work Together