Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/methodData.hpp @ 13181:389d40d7d99f
fixed bug in MethodData and added assertion that precomputed size == initialized size
reduced diff to upstream HotSpot
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 27 Nov 2013 02:31:03 +0100 |
parents | d84fa69a9874 |
children | 51e97f88c771 |
comparison
equal
deleted
inserted
replaced
13180:feff37de4465 | 13181:389d40d7d99f |
---|---|
1894 public: | 1894 public: |
1895 static MethodData* allocate(ClassLoaderData* loader_data, methodHandle method, TRAPS); | 1895 static MethodData* allocate(ClassLoaderData* loader_data, methodHandle method, TRAPS); |
1896 MethodData() {}; // For ciMethodData | 1896 MethodData() {}; // For ciMethodData |
1897 | 1897 |
1898 bool is_methodData() const volatile { return true; } | 1898 bool is_methodData() const volatile { return true; } |
1899 void initialize(); | 1899 void initialize(bool for_reprofile = false); |
1900 | 1900 |
1901 // Whole-method sticky bits and flags | 1901 // Whole-method sticky bits and flags |
1902 enum { | 1902 enum { |
1903 _trap_hist_limit = 17, // decoupled from Deoptimization::Reason_LIMIT | 1903 _trap_hist_limit = 17, // decoupled from Deoptimization::Reason_LIMIT |
1904 _trap_hist_mask = max_jubyte, | 1904 _trap_hist_mask = max_jubyte, |
2101 int num_blocks() const { return _num_blocks; } | 2101 int num_blocks() const { return _num_blocks; } |
2102 void set_num_blocks(int n) { _num_blocks = n; } | 2102 void set_num_blocks(int n) { _num_blocks = n; } |
2103 | 2103 |
2104 bool is_mature() const; // consult mileage and ProfileMaturityPercentage | 2104 bool is_mature() const; // consult mileage and ProfileMaturityPercentage |
2105 static int mileage_of(Method* m); | 2105 static int mileage_of(Method* m); |
2106 static bool is_empty_data(int size, Bytecodes::Code code); | |
2107 | 2106 |
2108 // Support for interprocedural escape analysis, from Thomas Kotzmann. | 2107 // Support for interprocedural escape analysis, from Thomas Kotzmann. |
2109 enum EscapeFlag { | 2108 enum EscapeFlag { |
2110 estimated = 1 << 0, | 2109 estimated = 1 << 0, |
2111 return_local = 1 << 1, | 2110 return_local = 1 << 1, |