Skip to content

Commit 7b69679

Browse files
committed
8362564: hotspot/jtreg/compiler/c2/TestLWLockingCodeGen.java fails on static JDK on x86_64 with AVX instruction extensions
Reviewed-by: kvn Backport-of: c239c0ab00196da8c7c5f6099c8189a778874588
1 parent bf31e50 commit 7b69679

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/hotspot/cpu/x86/stubDeclarations_x86.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
do_arch_blob, \
3131
do_arch_entry, \
3232
do_arch_entry_init) \
33-
do_arch_blob(initial, 20000 WINDOWS_ONLY(+1000)) \
33+
do_arch_blob(initial, PRODUCT_ONLY(20000) NOT_PRODUCT(21000) WINDOWS_ONLY(+1000)) \
3434
do_stub(initial, verify_mxcsr) \
3535
do_arch_entry(x86, initial, verify_mxcsr, verify_mxcsr_entry, \
3636
verify_mxcsr_entry) \

src/hotspot/share/runtime/stubRoutines.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ static BufferBlob* initialize_stubs(StubGenBlobId blob_id,
231231
StubGenerator_generate(&buffer, blob_id);
232232
// When new stubs added we need to make sure there is some space left
233233
// to catch situation when we should increase size again.
234-
assert(code_size == 0 || buffer.insts_remaining() > 200, "increase %s", assert_msg);
234+
assert(code_size == 0 || buffer.insts_remaining() > 200,
235+
"increase %s, code_size: %d, used: %d, free: %d",
236+
assert_msg, code_size, buffer.total_content_size(), buffer.insts_remaining());
235237

236238
LogTarget(Info, stubs) lt;
237239
if (lt.is_enabled()) {
@@ -240,6 +242,7 @@ static BufferBlob* initialize_stubs(StubGenBlobId blob_id,
240242
buffer_name, p2i(stubs_code->content_begin()), p2i(stubs_code->content_end()),
241243
buffer.total_content_size(), buffer.insts_remaining());
242244
}
245+
243246
return stubs_code;
244247
}
245248

0 commit comments

Comments
 (0)