Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8239931: [win][x86] vtable stub generation: assert failure (code size…
Browse files Browse the repository at this point in the history
… estimate) follow-up

Reviewed-by: mdoerr
  • Loading branch information
RealLucy committed Feb 28, 2020
1 parent 0cd6d13 commit 637795e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/x86/vtableStubs_x86_32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ VtableStub* VtableStubs::create_vtable_stub(int vtable_index) {
start_pc = __ pc();
// check offset vs vtable length
__ cmpl(Address(rax, Klass::vtable_length_offset()), vtable_index*vtableEntry::size());
slop_delta = 6 - (__ pc() - start_pc); // cmpl varies in length, depending on data
slop_delta = 10 - (__ pc() - start_pc); // cmpl varies in length, depending on data
slop_bytes += slop_delta;
assert(slop_delta >= 0, "negative slop(%d) encountered, adjust code size estimate!", slop_delta);

Expand Down

0 comments on commit 637795e

Please sign in to comment.