United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6868487 EnableInvokeDynamic and EnableMethodHandles should not be visible flags in JDK6 or JDK7
JDK-6868487 : EnableInvokeDynamic and EnableMethodHandles should not be visible flags in JDK6 or JDK7

Details
Type:
Bug
Submit Date:
2009-08-04
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs16 (b08)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
The flags EnableInvokeDynamic and EnableMethodHandles need to be categorized as experimental in the JDK6 VM (and off by default).

In a later build of JDK7, the fix for bug 6817525 will turn on those flags (both of them) by default, and at the same time recategorize them as diagnostic.

                                    

Comments
SUGGESTED FIX

diff --git a/src/share/vm/runtime/globals.hpp b/src/share/vm/runtime/globals.hpp
--- a/src/share/vm/runtime/globals.hpp
+++ b/src/share/vm/runtime/globals.hpp
@@ -3316,7 +3316,7 @@
   product(bool, AnonymousClasses, false,                                    \
           "support sun.misc.Unsafe.defineAnonymousClass")                   \
                                                                             \
-  product(bool, EnableMethodHandles, false,                                 \
+  experimental(bool, EnableMethodHandles, false,                            \
           "support method handles (true by default under JSR 292)")         \
                                                                             \
   diagnostic(intx, MethodHandlePushLimit, 3,                                \
@@ -3331,7 +3331,7 @@
   diagnostic(bool, OptimizeMethodHandles, true,                             \
           "when constructing method handles, try to improve them")          \
                                                                             \
-  product(bool, EnableInvokeDynamic, false,                                 \
+  experimental(bool, EnableInvokeDynamic, false,                            
           "recognize the invokedynamic instruction")                        \
                                                                             \
   develop(bool, TraceInvokeDynamic, false,                                  \
                                     
2009-08-04
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/bd2b1f617a4e
                                     
2009-08-07
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/bd2b1f617a4e
                                     
2009-08-10



Hardware and Software, Engineered to Work Together