Mercurial > hg > truffle
comparison src/share/vm/oops/methodDataOop.hpp @ 5036:8e6db1a5c537
exit the VM when an endless recompilation is detected
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Mon, 05 Mar 2012 12:01:38 -0800 |
parents | 8e1d9c27989a |
children | 5e9f38419819 |
comparison
equal
deleted
inserted
replaced
5022:cbedef8b4d15 | 5036:8e6db1a5c537 |
---|---|
1505 _nof_overflow_recompiles += 1; | 1505 _nof_overflow_recompiles += 1; |
1506 } | 1506 } |
1507 uint decompile_count() const { | 1507 uint decompile_count() const { |
1508 return _nof_decompiles; | 1508 return _nof_decompiles; |
1509 } | 1509 } |
1510 void inc_decompile_count() { | 1510 void inc_decompile_count(); |
1511 _nof_decompiles += 1; | |
1512 if (decompile_count() > (uint)PerMethodRecompilationCutoff) { | |
1513 method()->set_not_compilable(CompLevel_full_optimization); | |
1514 } | |
1515 } | |
1516 | 1511 |
1517 // Support for code generation | 1512 // Support for code generation |
1518 static ByteSize data_offset() { | 1513 static ByteSize data_offset() { |
1519 return byte_offset_of(methodDataOopDesc, _data[0]); | 1514 return byte_offset_of(methodDataOopDesc, _data[0]); |
1520 } | 1515 } |