From bca61e1f93e9db9426cb3d275fb8e2da9366e3aa Mon Sep 17 00:00:00 2001
Date: Sat, 16 May 2026 17:30:25 +0800
Subject: jprofilecache: open replay cache in read-only mode

---
 src/hotspot/share/jprofilecache/jitProfileCache.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hotspot/share/jprofilecache/jitProfileCache.cpp b/src/hotspot/share/jprofilecache/jitProfileCache.cpp
index df34b9f5a..01b796a01 100644
--- a/src/hotspot/share/jprofilecache/jitProfileCache.cpp
+++ b/src/hotspot/share/jprofilecache/jitProfileCache.cpp
@@ -256,7 +256,7 @@ void JitProfileCacheInfo::init() {
   }
 
   RandomFileStreamGuard fsg(new (mtInternal) randomAccessFileStream(
-    ProfilingCacheFile, "rb+"));
+    ProfilingCacheFile, "rb"));
   JitProfileCacheFileParser parser(fsg(), this);
   if (!fsg->is_open()) {
     log_error(jprofilecache)("[JitProfileCache] ERROR : JitProfile doesn't exist");
-- 
2.17.1