Mercurial > hg > truffle
comparison src/share/vm/oops/methodData.hpp @ 20457:631667807de7
8058184: Move _highest_comp_level and _highest_osr_comp_level from MethodData to MethodCounters
Summary: Tiered policy requires highest compilation levels always available
Reviewed-by: kvn, vlivanov
author | iveresov |
---|---|
date | Thu, 11 Sep 2014 12:18:26 -0700 |
parents | f6f9aec27858 |
children | 600c44255e5f |
comparison
equal
deleted
inserted
replaced
20455:07f629123254 | 20457:631667807de7 |
---|---|
2096 | 2096 |
2097 // Number of loops and blocks is computed when compiling the first | 2097 // Number of loops and blocks is computed when compiling the first |
2098 // time with C1. It is used to determine if method is trivial. | 2098 // time with C1. It is used to determine if method is trivial. |
2099 short _num_loops; | 2099 short _num_loops; |
2100 short _num_blocks; | 2100 short _num_blocks; |
2101 // Highest compile level this method has ever seen. | |
2102 u1 _highest_comp_level; | |
2103 // Same for OSR level | |
2104 u1 _highest_osr_comp_level; | |
2105 // Does this method contain anything worth profiling? | 2101 // Does this method contain anything worth profiling? |
2106 bool _would_profile; | 2102 bool _would_profile; |
2107 | 2103 |
2108 // Size of _data array in bytes. (Excludes header and extra_data fields.) | 2104 // Size of _data array in bytes. (Excludes header and extra_data fields.) |
2109 int _data_size; | 2105 int _data_size; |
2272 } | 2268 } |
2273 #endif | 2269 #endif |
2274 | 2270 |
2275 void set_would_profile(bool p) { _would_profile = p; } | 2271 void set_would_profile(bool p) { _would_profile = p; } |
2276 bool would_profile() const { return _would_profile; } | 2272 bool would_profile() const { return _would_profile; } |
2277 | |
2278 int highest_comp_level() const { return _highest_comp_level; } | |
2279 void set_highest_comp_level(int level) { _highest_comp_level = level; } | |
2280 int highest_osr_comp_level() const { return _highest_osr_comp_level; } | |
2281 void set_highest_osr_comp_level(int level) { _highest_osr_comp_level = level; } | |
2282 | 2273 |
2283 int num_loops() const { return _num_loops; } | 2274 int num_loops() const { return _num_loops; } |
2284 void set_num_loops(int n) { _num_loops = n; } | 2275 void set_num_loops(int n) { _num_loops = n; } |
2285 int num_blocks() const { return _num_blocks; } | 2276 int num_blocks() const { return _num_blocks; } |
2286 void set_num_blocks(int n) { _num_blocks = n; } | 2277 void set_num_blocks(int n) { _num_blocks = n; } |