Mercurial > hg > truffle
diff src/share/vm/c1/c1_IR.cpp @ 2014:4de5f4101cfd
Merge
author | iveresov |
---|---|
date | Wed, 08 Dec 2010 17:50:49 -0800 |
parents | 5ddfcf4b079e |
children | 701a83c86f28 |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_IR.cpp Wed Dec 08 04:50:35 2010 -0800 +++ b/src/share/vm/c1/c1_IR.cpp Wed Dec 08 17:50:49 2010 -0800 @@ -504,7 +504,12 @@ count_edges(start_block, NULL); if (compilation()->is_profiling()) { - compilation()->method()->method_data()->set_compilation_stats(_num_loops, _num_blocks); + ciMethod *method = compilation()->method(); + if (!method->is_accessor()) { + ciMethodData* md = method->method_data_or_null(); + assert(md != NULL, "Sanity"); + md->set_compilation_stats(_num_loops, _num_blocks); + } } if (_num_loops > 0) {