diff src/share/vm/graal/graalCompiler.hpp @ 5129:51111665eda6

Support for recording a leaf graph id for each deoptimization point in the debug info.
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 21 Mar 2012 10:47:02 +0100
parents 6e7c1fb1980f
children 70f715dfbb41
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.hpp	Fri Mar 16 11:03:54 2012 +0100
+++ b/src/share/vm/graal/graalCompiler.hpp	Wed Mar 21 10:47:02 2012 +0100
@@ -23,13 +23,18 @@
 
 #include "compiler/abstractCompiler.hpp"
 
+#define LEAF_GRAPH_ARRAY_SIZE (8192)
+
 class GraalCompiler : public AbstractCompiler {
 
 private:
 
   bool                  _initialized;
 
-  static GraalCompiler*   _instance;
+  static GraalCompiler* _instance;
+
+  jlong                 _deopted_leaf_graphs[LEAF_GRAPH_ARRAY_SIZE];
+  int                   _deopted_leaf_graph_count;
 
 public:
 
@@ -56,6 +61,9 @@
 
   void compile_method(methodHandle target, int entry_bci, jboolean blocking);
 
+  void deopt_leaf_graph(jlong leaf_graph_id);
+  oop dump_deopted_leaf_graphs(TRAPS);
+
   // Print compilation timers and statistics
   virtual void print_timers();