In Arguments::parse (arguments.cpp) there are multiple call-outs to routines
which set up GC-related flags: set_adaptive_size_policy_flags(),
set_cms_and_parnew_gc_flags(), and set_ergonomics_flags(). These calls are in
the wrong place; check_vm_args_consistency(), called from within
parse_vm_init_args (which is called before any of these GC-related routines),
should be the last operation that mutates and validates the argument list.
Presumably these routines should be called at the end of parse_vm_init_args().
which set up GC-related flags: set_adaptive_size_policy_flags(),
set_cms_and_parnew_gc_flags(), and set_ergonomics_flags(). These calls are in
the wrong place; check_vm_args_consistency(), called from within
parse_vm_init_args (which is called before any of these GC-related routines),
should be the last operation that mutates and validates the argument list.
Presumably these routines should be called at the end of parse_vm_init_args().