-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8308850: Change JVM options with small ranges that get -Wconversion warnings to 32 bits #15164
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
Changes from all commits
18437bd
1fe9604
d88a123
d7919b1
361a3d9
2e25bbf
51df0d3
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 |
|---|---|---|
|
|
@@ -443,7 +443,7 @@ const int ObjectAlignmentInBytes = 8; | |
| product(bool, LogEvents, true, DIAGNOSTIC, \ | ||
| "Enable the various ring buffer event logs") \ | ||
| \ | ||
| product(uintx, LogEventsBufferEntries, 20, DIAGNOSTIC, \ | ||
| product(int, LogEventsBufferEntries, 20, DIAGNOSTIC, \ | ||
|
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 was going to say this should keep its unsignedness but it is treated as an |
||
| "Number of ring buffer event logs") \ | ||
| range(1, NOT_LP64(1*K) LP64_ONLY(1*M)) \ | ||
| \ | ||
|
|
@@ -1101,7 +1101,7 @@ const int ObjectAlignmentInBytes = 8; | |
| notproduct(bool, CollectIndexSetStatistics, false, \ | ||
| "Collect information about IndexSets") \ | ||
| \ | ||
| develop(intx, FastAllocateSizeLimit, 128*K, \ | ||
| develop(int, FastAllocateSizeLimit, 128*K, \ | ||
afshin-zafari marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \ | ||
| "Inline allocations larger than this in doublewords must go slow")\ | ||
| \ | ||
|
|
@@ -1234,28 +1234,28 @@ const int ObjectAlignmentInBytes = 8; | |
| "When using recompilation, never interpret methods " \ | ||
| "containing loops") \ | ||
| \ | ||
| product(intx, AllocatePrefetchStyle, 1, \ | ||
| product(int, AllocatePrefetchStyle, 1, \ | ||
| "0 = no prefetch, " \ | ||
| "1 = generate prefetch instructions for each allocation, " \ | ||
| "2 = use TLAB watermark to gate allocation prefetch, " \ | ||
| "3 = generate one prefetch instruction per cache line") \ | ||
| range(0, 3) \ | ||
| \ | ||
| product(intx, AllocatePrefetchDistance, -1, \ | ||
| product(int, AllocatePrefetchDistance, -1, \ | ||
| "Distance to prefetch ahead of allocation pointer. " \ | ||
| "-1: use system-specific value (automatically determined") \ | ||
| range(-1, 512) \ | ||
| \ | ||
| product(intx, AllocatePrefetchLines, 3, \ | ||
| product(int, AllocatePrefetchLines, 3, \ | ||
| "Number of lines to prefetch ahead of array allocation pointer") \ | ||
| range(1, 64) \ | ||
| \ | ||
| product(intx, AllocateInstancePrefetchLines, 1, \ | ||
| product(int, AllocateInstancePrefetchLines, 1, \ | ||
| "Number of lines to prefetch ahead of instance allocation " \ | ||
| "pointer") \ | ||
| range(1, 64) \ | ||
| \ | ||
| product(intx, AllocatePrefetchStepSize, 16, \ | ||
| product(int, AllocatePrefetchStepSize, 16, \ | ||
afshin-zafari marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "Step size in bytes of sequential prefetch instructions") \ | ||
| range(1, 512) \ | ||
| constraint(AllocatePrefetchStepSizeConstraintFunc,AfterMemoryInit)\ | ||
|
|
@@ -1308,7 +1308,7 @@ const int ObjectAlignmentInBytes = 8; | |
| develop(intx, MallocCatchPtr, -1, \ | ||
| "Hit breakpoint when mallocing/freeing this pointer") \ | ||
| \ | ||
| develop(intx, StackPrintLimit, 100, \ | ||
| develop(int, StackPrintLimit, 100, \ | ||
|
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. You can remove this cast now: 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. Fixed. |
||
| "number of stack frames to print in VM-level stack dump") \ | ||
| \ | ||
| product(int, ErrorLogPrintCodeLimit, 3, DIAGNOSTIC, \ | ||
|
|
@@ -1742,7 +1742,7 @@ const int ObjectAlignmentInBytes = 8; | |
| "The string %p in the file name (if present) " \ | ||
| "will be replaced by pid") \ | ||
| \ | ||
| product(intx, PerfDataSamplingInterval, 50, \ | ||
| product(int, PerfDataSamplingInterval, 50, \ | ||
| "Data sampling interval (in milliseconds)") \ | ||
| range(PeriodicTask::min_interval, max_jint) \ | ||
| constraint(PerfDataSamplingIntervalFunc, AfterErgo) \ | ||
|
Comment on lines
+1745
to
1748
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. You need to change the type of the 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 changed this and checked for the other options I changed. |
||
|
|
||
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.
Why is AllocatePrefetchInstr not changed? It seems to use 0-3 only.
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.
Looks like from the constraints, it's allowed to be max_intx on some platforms, so changing this would be a functional change.
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.
OK, that sounds reasonable.
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.
Fwiw, only x86 uses
AllocatePrefetchInstr. Other platforms never use it, so its value for those is meaningless.