United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4874782 : CMS: CL options MaxTenuringThreshold, MaxNewSize and SurvivorRatio are ignored

Details
Type:
Bug
Submit Date:
2003-06-05
Status:
Closed
Updated Date:
2004-09-13
Project Name:
JDK
Resolved Date:
2003-07-07
Component:
hotspot
OS:
solaris_8,generic
Sub-Component:
gc
CPU:
sparc,generic
Priority:
P1
Resolution:
Fixed
Affected Versions:
1.4.2,1.4.2_03
Fixed Versions:
1.4.2_05 (05)

Related Reports
Backport:
Relates:

Sub Tasks

Description
This bug was introduced as a result of the
setting of default values for the above in CMS
as part of 4804915.


                                    

Comments
SUGGESTED FIX

The problem was that _is_default_XXX was not being correctly
set in the argument processing. This caused the CL option
settings for these parameters to be ignored when we used
the _is_default_XX test.

------- arguments.cpp -------
1560a1561,1567
>     } else if (match_option(option, "-XX:MaxNewSize", &tail)) {
>       _is_default_max_new_size = false;
>       // Back up so we can use normal argument processing
>       match_option(option, "-XX:", &tail);
>       if (!process_argument(tail, args->ignoreUnrecognized)) {
>         return JNI_EINVAL;
>       }
1571a1579,1592
>       if (!process_argument(tail, args->ignoreUnrecognized)) {
>         return JNI_EINVAL;
>       }
>     } else if (match_option(option, "-XX:MaxTenuringThreshold", &tail)) {
>       _is_default_max_tenuring_threshold = false;
>       // Back up so we can use normal argument processing
>       match_option(option, "-XX:", &tail);
>       if (!process_argument(tail, args->ignoreUnrecognized)) {
>         return JNI_EINVAL;
>       }
>     } else if (match_option(option, "-XX:SurvivorRatio", &tail)) {
>       _is_default_survivor_ratio = false;
>       // Back up so we can use normal argument processing
>       match_option(option, "-XX:", &tail);


###@###.### 2003-06-06: fix putback to [Tiger's] gc_baseline.
                                     
2003-06-06
WORK AROUND

None known.
                                     
2004-09-17
EVALUATION

See suggested fix.
                                     
2004-09-17
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.2_05
tiger

FIXED IN:
1.4.2_05
tiger

INTEGRATED IN:
1.4.2_05
tiger
tiger-b10

VERIFIED IN:
1.4.2_05


                                     
2004-09-17



Hardware and Software, Engineered to Work Together