mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8238782: Cleanup Deoptimization::deoptimize(): remove unused RegisterMap argument and don't update RegisterMap in callers if UseBiasedLocking is enabled
Reviewed-by: dholmes, kvn
This commit is contained in:
parent
446f59a26c
commit
b0b8190ea2
6 changed files with 20 additions and 25 deletions
|
@ -134,12 +134,11 @@ void VM_DeoptimizeAll::doit() {
|
|||
tcount = 0;
|
||||
int fcount = 0;
|
||||
// Deoptimize some selected frames.
|
||||
// Biased llocking wants a updated register map
|
||||
for(StackFrameStream fst(thread, UseBiasedLocking); !fst.is_done(); fst.next()) {
|
||||
for(StackFrameStream fst(thread, false); !fst.is_done(); fst.next()) {
|
||||
if (fst.current()->can_be_deoptimized()) {
|
||||
if (fcount++ == fnum) {
|
||||
fcount = 0;
|
||||
Deoptimization::deoptimize(thread, *fst.current(), fst.register_map());
|
||||
Deoptimization::deoptimize(thread, *fst.current());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue