From 5f54ee1e8c722e8188a008b63580908d27eb94e9 Mon Sep 17 00:00:00 2001 From: Saranya Natarajan Date: Fri, 4 Jul 2025 11:09:55 +0000 Subject: [PATCH 1/4] initial commit --- src/hotspot/share/runtime/globals.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index 91dadd05180c5..db74dd4e5cb9b 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -1353,6 +1353,8 @@ const int ObjectAlignmentInBytes = 8; \ develop(intx, BciProfileWidth, 2, \ "Number of return bci's to record in ret profile") \ + range(0, 10000) \ + \ \ product(intx, PerMethodRecompilationCutoff, 400, \ "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ From 76066097d0c8f94ec39d2ba882a803b68a0dd290 Mon Sep 17 00:00:00 2001 From: Saranya Natarajan Date: Fri, 4 Jul 2025 21:51:28 +0000 Subject: [PATCH 2/4] Modified the upper bound --- src/hotspot/share/runtime/globals.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index db74dd4e5cb9b..6e22d0753425f 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -1353,7 +1353,7 @@ const int ObjectAlignmentInBytes = 8; \ develop(intx, BciProfileWidth, 2, \ "Number of return bci's to record in ret profile") \ - range(0, 10000) \ + range(0, 8000) \ \ \ product(intx, PerMethodRecompilationCutoff, 400, \ From 6a36457dbde30cede0d501159291205ff42cb1c3 Mon Sep 17 00:00:00 2001 From: Saranya Natarajan Date: Mon, 21 Jul 2025 08:34:35 +0000 Subject: [PATCH 3/4] Fix for AArch64 --- src/hotspot/share/runtime/globals.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index 6e22d0753425f..863fdb3c19620 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -1351,9 +1351,9 @@ const int ObjectAlignmentInBytes = 8; "Number of receiver types to record in call/cast profile") \ range(0, 8) \ \ - develop(intx, BciProfileWidth, 2, \ + develop(intx, BciProfileWidth, 2, \ "Number of return bci's to record in ret profile") \ - range(0, 8000) \ + range(0, AARCH64_ONLY(1000) NOT_AARCH64(5000)) \ \ \ product(intx, PerMethodRecompilationCutoff, 400, \ From a32b6eadaf1c23dfd4fcf6a56198e719d8145fc1 Mon Sep 17 00:00:00 2001 From: Saranya Natarajan Date: Tue, 22 Jul 2025 12:57:27 +0000 Subject: [PATCH 4/4] addressing review comment 1 --- src/hotspot/share/runtime/globals.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index 863fdb3c19620..fee810c4001e7 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -1351,11 +1351,10 @@ 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)) \ \ - \ product(intx, PerMethodRecompilationCutoff, 400, \ "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ range(-1, max_intx) \