diff src/share/vm/oops/methodOop.hpp @ 6271:93c71eb28866

7188911: nightly failures after JSR 292 lazy method handle update (round 2) Reviewed-by: kvn, jrose
author twisti
date Tue, 07 Aug 2012 14:32:08 -0700
parents 1d7922586cf6
children 957c266d8bc5
line wrap: on
line diff
--- a/src/share/vm/oops/methodOop.hpp	Wed Aug 01 14:44:26 2012 -0700
+++ b/src/share/vm/oops/methodOop.hpp	Tue Aug 07 14:32:08 2012 -0700
@@ -247,8 +247,10 @@
   void set_constants(constantPoolOop c)          { constMethod()->set_constants(c); }
 
   // max stack
-  int  max_stack() const                         { return _max_stack + extra_stack_entries(); }
-  void set_max_stack(int size)                   { _max_stack = size; }
+  // return original max stack size for method verification
+  int  verifier_max_stack() const                { return _max_stack; }
+  int           max_stack() const                { return _max_stack + extra_stack_entries(); }
+  void      set_max_stack(int size)              {        _max_stack = size; }
 
   // max locals
   int  max_locals() const                        { return _max_locals; }