Skip to content
Permalink
Browse files
8239931: [win][x86] vtable stub generation: assert failure (code size…
… estimate) follow-up

Reviewed-by: mdoerr
  • Loading branch information
RealLucy committed Feb 28, 2020
1 parent 0cd6d13 commit 637795e0a7aac7eae2b905468333fff6b8208405
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/cpu/x86/vtableStubs_x86_32.cpp
@@ -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);

0 comments on commit 637795e

Please sign in to comment.