1323 if (JLI_StrCCmp(arg, "-Djava.class.path=") == 0) {
1324 _have_classpath = JNI_TRUE;
1325 } else if (JLI_StrCmp(arg, "-Djava.awt.headless=true") == 0) {
1326 /*
1327 * Checking for headless toolkit option in the same way as AWT does:
1328 * "true" means true and any other value means false
1329 */
1330 headless = true;
1331 } else if (JLI_StrCCmp(arg, "-Djava.awt.headless=") == 0) {
1332 headless = false;
1333 }
1334 AddOption(arg, NULL);
1335 }
1336
1337 /*
1338 * Check for CDS option
1339 */
1340 if (JLI_StrCmp(arg, "-Xshare:dump") == 0) {
1341 dumpSharedSpaces = JNI_TRUE;
1342 }
1343 }
1344
1345 if (*pwhat == NULL && --argc >= 0) {
1346 *pwhat = *argv++;
1347 }
1348
1349 if (*pwhat == NULL) {
1350 /* LM_UNKNOWN okay for options that exit */
1351 if (!listModules && !describeModule && !validateModules && !dumpSharedSpaces) {
1352 *pret = 1;
1353 }
1354 } else if (mode == LM_UNKNOWN) {
1355 if (!_have_classpath) {
1356 SetClassPath(".");
1357 }
1358 /* If neither of -m, -jar, --source option is set, then the
1359 * launcher mode is LM_UNKNOWN. In such cases, we determine the
1360 * mode as LM_CLASS or LM_SOURCE per the input file. */
1361 mode = IsSourceFile(arg) ? LM_SOURCE : LM_CLASS;
1362 } else if (mode == LM_CLASS && IsSourceFile(arg)) {
|
1323 if (JLI_StrCCmp(arg, "-Djava.class.path=") == 0) {
1324 _have_classpath = JNI_TRUE;
1325 } else if (JLI_StrCmp(arg, "-Djava.awt.headless=true") == 0) {
1326 /*
1327 * Checking for headless toolkit option in the same way as AWT does:
1328 * "true" means true and any other value means false
1329 */
1330 headless = true;
1331 } else if (JLI_StrCCmp(arg, "-Djava.awt.headless=") == 0) {
1332 headless = false;
1333 }
1334 AddOption(arg, NULL);
1335 }
1336
1337 /*
1338 * Check for CDS option
1339 */
1340 if (JLI_StrCmp(arg, "-Xshare:dump") == 0) {
1341 dumpSharedSpaces = JNI_TRUE;
1342 }
1343 if (JLI_StrCmp(arg, "-XX:AOTMode=create") == 0) {
1344 // Alias for -Xshare:dump
1345 dumpSharedSpaces = JNI_TRUE;
1346 }
1347 }
1348
1349 if (*pwhat == NULL && --argc >= 0) {
1350 *pwhat = *argv++;
1351 }
1352
1353 if (*pwhat == NULL) {
1354 /* LM_UNKNOWN okay for options that exit */
1355 if (!listModules && !describeModule && !validateModules && !dumpSharedSpaces) {
1356 *pret = 1;
1357 }
1358 } else if (mode == LM_UNKNOWN) {
1359 if (!_have_classpath) {
1360 SetClassPath(".");
1361 }
1362 /* If neither of -m, -jar, --source option is set, then the
1363 * launcher mode is LM_UNKNOWN. In such cases, we determine the
1364 * mode as LM_CLASS or LM_SOURCE per the input file. */
1365 mode = IsSourceFile(arg) ? LM_SOURCE : LM_CLASS;
1366 } else if (mode == LM_CLASS && IsSourceFile(arg)) {
|