Mercurial > hg > truffle
diff src/share/vm/code/debugInfoRec.cpp @ 5129:51111665eda6
Support for recording a leaf graph id for each deoptimization point in the debug info.
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Wed, 21 Mar 2012 10:47:02 +0100 |
parents | 597bc897257d |
children | 957c266d8bc5 |
line wrap: on
line diff
--- a/src/share/vm/code/debugInfoRec.cpp Fri Mar 16 11:03:54 2012 +0100 +++ b/src/share/vm/code/debugInfoRec.cpp Wed Mar 21 10:47:02 2012 +0100 @@ -127,14 +127,14 @@ _oopmaps->add_gc_map(pc_offset, map); } -void DebugInformationRecorder::add_safepoint(int pc_offset, OopMap* map) { +void DebugInformationRecorder::add_safepoint(int pc_offset, jlong leaf_graph_id, OopMap* map) { assert(!_oop_recorder->is_complete(), "not frozen yet"); // Store the new safepoint // Add the oop map add_oopmap(pc_offset, map); - add_new_pc_offset(pc_offset); + add_new_pc_offset(pc_offset, leaf_graph_id); assert(_recording_state == rs_null, "nesting of recording calls"); debug_only(_recording_state = rs_safepoint); @@ -150,7 +150,7 @@ debug_only(_recording_state = rs_non_safepoint); } -void DebugInformationRecorder::add_new_pc_offset(int pc_offset) { +void DebugInformationRecorder::add_new_pc_offset(int pc_offset, jlong leaf_graph_id) { assert(_pcs_length == 0 || last_pc()->pc_offset() < pc_offset, "must specify a new, larger pc offset"); @@ -168,7 +168,7 @@ assert(_pcs_size > _pcs_length, "There must be room for after expanding"); _pcs[_pcs_length++] = PcDesc(pc_offset, DebugInformationRecorder::serialized_null, - DebugInformationRecorder::serialized_null); + DebugInformationRecorder::serialized_null, leaf_graph_id); }