mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8067460: G1: TestResourceManagementFlagWithCommercialBuild.java failed on embedded platform
Added extension point to detect unsupported options Reviewed-by: dholmes, bdelsart
This commit is contained in:
parent
00d9c7a2d1
commit
3e2dcfd880
3 changed files with 15 additions and 12 deletions
|
@ -632,4 +632,16 @@ bool Arguments::check_gc_consistency_ergo() {
|
|||
return check_gc_consistency_user();
|
||||
}
|
||||
|
||||
// Disable options not supported in this release, with a warning if they
|
||||
// were explicitly requested on the command-line
|
||||
#define UNSUPPORTED_OPTION(opt, description) \
|
||||
do { \
|
||||
if (opt) { \
|
||||
if (FLAG_IS_CMDLINE(opt)) { \
|
||||
warning(description " is disabled in this release."); \
|
||||
} \
|
||||
FLAG_SET_DEFAULT(opt, false); \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue