1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
@@ -2127,7 +2127,7 @@ jint
ReadKnownVMs(const char *jvmCfgName, jboolean speculative)
{
FILE *jvmCfg;
- char line[MAXPATHLEN+20];
+ char line[MAXPATHLEN+30];
int cnt = 0;
int lineno = 0;
jlong start = 0, end = 0;
@@ -2141,6 +2141,11 @@ ReadKnownVMs(const char *jvmCfgName, jbo
jvmCfg = fopen(jvmCfgName, "r");
if (jvmCfg == NULL) {
+ char cfgName[strlen(jvmCfgName)+10];
+ sprintf(cfgName, "%s-default", jvmCfgName);
+ jvmCfg = fopen(cfgName, "r");
+ }
+ if (jvmCfg == NULL) {
if (!speculative) {
JLI_ReportErrorMessage(CFG_ERROR6, jvmCfgName);
exit(1);
|