diff src/share/vm/runtime/thread.hpp @ 3558:bc95d122df79

added runtime call to supply info upon deoptimization
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 24 Aug 2011 17:40:12 +0200
parents 22d11b3bc561
children 0e8a2a629afb
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.hpp	Wed Aug 24 14:22:34 2011 +0200
+++ b/src/share/vm/runtime/thread.hpp	Wed Aug 24 17:40:12 2011 +0200
@@ -840,6 +840,8 @@
   // graal needs some place to put the dimensions
   jint graal_multinewarray_storage[256];
 
+  volatile oop _graal_deopt_info;
+
   StackGuardState        _stack_guard_state;
 
   // Compiler exception handling (NOTE: The _exception_oop is *NOT* the same as _pending_exception. It is
@@ -1194,6 +1196,9 @@
   MemRegion deferred_card_mark() const           { return _deferred_card_mark; }
   void set_deferred_card_mark(MemRegion mr)      { _deferred_card_mark = mr;   }
 
+  oop      graal_deopt_info() const              { return _graal_deopt_info; }
+  void set_graal_deopt_info(oop o)               { _graal_deopt_info = o; }
+
   // Exception handling for compiled methods
   oop      exception_oop() const                 { return _exception_oop; }
   int      exception_stack_size() const          { return _exception_stack_size; }
@@ -1275,6 +1280,7 @@
   static ByteSize thread_state_offset()          { return byte_offset_of(JavaThread, _thread_state        ); }
   static ByteSize saved_exception_pc_offset()    { return byte_offset_of(JavaThread, _saved_exception_pc  ); }
   static ByteSize osthread_offset()              { return byte_offset_of(JavaThread, _osthread            ); }
+  static ByteSize graal_deopt_info_offset()      { return byte_offset_of(JavaThread, _graal_deopt_info    ); }
   static ByteSize exception_oop_offset()         { return byte_offset_of(JavaThread, _exception_oop       ); }
   static ByteSize exception_pc_offset()          { return byte_offset_of(JavaThread, _exception_pc        ); }
   static ByteSize exception_handler_pc_offset()  { return byte_offset_of(JavaThread, _exception_handler_pc); }