-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8358696: Assert with extreme values for -XX:BciProfileWidth #26139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
5f54ee1
7606609
6a36457
a32b6ea
c3a85cd
2d0084b
2fc4b0b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1351,8 +1351,9 @@ const int ObjectAlignmentInBytes = 8; | |
"Number of receiver types to record in call/cast profile") \ | ||
range(0, 8) \ | ||
\ | ||
develop(intx, BciProfileWidth, 2, \ | ||
develop(int, BciProfileWidth, 2, \ | ||
"Number of return bci's to record in ret profile") \ | ||
range(0, AARCH64_ONLY(1000) NOT_AARCH64(5000)) \ | ||
\ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe that's one empty line too much (cf. other spacing just around). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you. I fixed this. |
||
product(intx, PerMethodRecompilationCutoff, 400, \ | ||
"After recompiling N times, stay in the interpreter (-1=>'Inf')") \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
|
@@ -36,9 +36,9 @@ | |
import jdk.test.lib.Platform; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NIt: copyright date |
||
public class IntxTest { | ||
private static final String FLAG_NAME = "OnStackReplacePercentage"; | ||
private static final String FLAG_DEBUG_NAME = "BciProfileWidth"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we might want use another There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I addressed this comment by adding |
||
private static final long COMPILE_THRESHOLD = VmFlagTest.WHITE_BOX.getIntxVMFlag("CompileThreshold"); | ||
private static final Long[] TESTS = {0L, 100L, (long)(Integer.MAX_VALUE>>3)*100L}; | ||
private static final String FLAG_DEBUG_NAME = "BinarySwitchThreshold"; | ||
|
||
public static void main(String[] args) throws Exception { | ||
find_and_set_max_osrp(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too sure of the usual number of returns but even just 1000 sounds quite big as maximum. Do you think we could use that for all architectures?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review. I have tested 1000 by reducing the
InterpreterCodeSize
to the smallest value in all the specified architecture in the source code on both AArch64 and x86. It works for 1000. Hence, I think it should work on all architectures. Do you propose I make it 1000 (or a lesser value) for all architecture ?