changeset 58202:ec5e6e8d1ed2

8239931: [win][x86] vtable stub generation: assert failure (code size estimate) follow-up Reviewed-by: mdoerr
author lucy
date Fri, 28 Feb 2020 16:36:47 +0100
parents 1a57db1b936f
children c838a35b86e9
files src/hotspot/cpu/x86/vtableStubs_x86_32.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/x86/vtableStubs_x86_32.cpp	Fri Feb 28 10:16:44 2020 -0500
+++ b/src/hotspot/cpu/x86/vtableStubs_x86_32.cpp	Fri Feb 28 16:36:47 2020 +0100
@@ -97,7 +97,7 @@
     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);