mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7122880: Extend vendor-specific command interface to include manageable switches
Add Flag::external_ext()/writable_ext(), both return false. Reviewed-by: coleenp, zgu
This commit is contained in:
parent
85db00acd6
commit
2c192911dd
4 changed files with 17 additions and 3 deletions
|
@ -82,16 +82,19 @@ bool Flag::is_unlocked() const {
|
|||
}
|
||||
|
||||
bool Flag::is_writeable() const {
|
||||
return (strcmp(kind, "{manageable}") == 0 || strcmp(kind, "{product rw}") == 0);
|
||||
return strcmp(kind, "{manageable}") == 0 ||
|
||||
strcmp(kind, "{product rw}") == 0 ||
|
||||
is_writeable_ext();
|
||||
}
|
||||
|
||||
// All flags except "manageable" are assumed internal flags.
|
||||
// All flags except "manageable" are assumed to be internal flags.
|
||||
// Long term, we need to define a mechanism to specify which flags
|
||||
// are external/stable and change this function accordingly.
|
||||
bool Flag::is_external() const {
|
||||
return (strcmp(kind, "{manageable}") == 0);
|
||||
return strcmp(kind, "{manageable}") == 0 || is_external_ext();
|
||||
}
|
||||
|
||||
|
||||
// Length of format string (e.g. "%.1234s") for printing ccstr below
|
||||
#define FORMAT_BUFFER_LEN 16
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue