diff src/share/vm/oops/methodDataOop.hpp @ 4439:f7251c729b31

profiling info first try
author Christian Haeubl <christian.haeubl@oracle.com>
date Thu, 19 Jan 2012 16:29:35 -0800
parents c26de9aef2ed
children 8e1d9c27989a
line wrap: on
line diff
--- a/src/share/vm/oops/methodDataOop.hpp	Tue Jan 17 20:35:49 2012 +0100
+++ b/src/share/vm/oops/methodDataOop.hpp	Thu Jan 19 16:29:35 2012 -0800
@@ -1194,6 +1194,9 @@
   // Back pointer to the methodOop
   methodOop _method;
 
+  // com/oracle/max/graal/hotspot/HotSpotProfilingInfo mirroring this method
+  oop               _graal_mirror;
+
   // Size of this oop in bytes
   int _size;
 
@@ -1423,6 +1426,10 @@
   // Accessors
   methodOop method() { return _method; }
 
+  // graal mirror
+  oop graal_mirror() const               { return _graal_mirror; }
+  void set_graal_mirror(oop m)           { oop_store((oop*) &_graal_mirror, m); }
+
   // Get the data at an arbitrary (sort of) data index.
   ProfileData* data_at(int data_index);
 
@@ -1520,6 +1527,7 @@
 
   // GC support
   oop* adr_method() const { return (oop*)&_method; }
+  oop* adr_graal_mirror() const { return (oop*)&_graal_mirror; }
   bool object_is_parsable() const { return _size != 0; }
   void set_object_is_parsable(int object_size_in_bytes) { _size = object_size_in_bytes; }