--- old/src/share/vm/oops/method.hpp 2015-10-08 07:24:12.000000000 -1000 +++ new/src/share/vm/oops/method.hpp 2015-10-08 07:24:12.000000000 -1000 @@ -685,8 +685,10 @@ TRAPS); static Klass* check_non_bcp_klass(Klass* klass); - // How many extra stack entries for invokedynamic when it's enabled - static const int extra_stack_entries_for_jsr292 = 1; + enum { + // How many extra stack entries for invokedynamic + extra_stack_entries_for_jsr292 = 1 + }; // this operates only on invoke methods: // presize interpreter frames for extra interpreter stack entries, if needed