Skip to content

Commit b7b8713

Browse files
Meher Srujana Matchadatho7561
authored andcommitted
Disable AppCDS on Java 26+ (#4511)
1 parent 4afde40 commit b7b8713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/javaServerStarter.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function prepareParams(requirements: RequirementsData, workspacePath, context: E
304304

305305
ensureExists(globalStoragePath);
306306
const sharedArchiveLocation = path.join(globalStoragePath, "jdtls.jsa");
307-
if (useAppCDS && vmargs.indexOf(SHARED_ARCHIVE_FILE_LOC) < 0 && !hasJDWP) {
307+
if (useAppCDS && vmargs.indexOf(SHARED_ARCHIVE_FILE_LOC) < 0 && !hasJDWP && requirements.tooling_jre_version < 26) {
308308
params.push(UNLOCK_DIAGNOSTIC_VM_OPTIONS);
309309
params.push(ALLOW_ARCHIVING_WITH_JAVA_AGENT); // required due to use of '-javaagent'
310310
params.push(AUTO_CREATE_SHARED_ARCHIVE);

0 commit comments

Comments
 (0)