Mercurial > hg > graal-compiler
diff src/share/vm/runtime/deoptimization.cpp @ 13188:6b2d8d20ecbd
deoptimization: add helper to minimize hsx diff #resolve GRAAL-531
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Thu, 28 Nov 2013 14:12:31 +0100 |
parents | bc868f83bcec |
children | 51e97f88c771 |
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.cpp Thu Nov 28 13:19:58 2013 +0100 +++ b/src/share/vm/runtime/deoptimization.cpp Thu Nov 28 14:12:31 2013 +0100 @@ -1214,6 +1214,10 @@ fr.deoptimize(thread); } +void Deoptimization::deoptimize(JavaThread* thread, frame fr, RegisterMap *map) { + deoptimize(thread, fr, map, Reason_constraint); +} + void Deoptimization::deoptimize(JavaThread* thread, frame fr, RegisterMap *map, DeoptReason reason) { // Deoptimize only if the frame comes from compile code. // Do not deoptimize the frame which is already patched @@ -1253,6 +1257,9 @@ } } +void Deoptimization::deoptimize_frame(JavaThread* thread, intptr_t* id) { + deoptimize_frame(thread, id, Reason_constraint); +} // JVMTI PopFrame support JRT_LEAF(void, Deoptimization::popframe_preserve_args(JavaThread* thread, int bytes_to_save, void* start_address))