src/hotspot/share/runtime/flags/jvmFlag.cpp
changeset 50708 bd3a8f48597e
parent 50289 0195ee80e530
child 51070 2f4c3cac8556
equal deleted inserted replaced
50707:ed45d8e6a44b 50708:bd3a8f48597e
   322   return (_flags & KIND_DEVELOP) != 0;
   322   return (_flags & KIND_DEVELOP) != 0;
   323 }
   323 }
   324 
   324 
   325 bool JVMFlag::is_read_write() const {
   325 bool JVMFlag::is_read_write() const {
   326   return (_flags & KIND_READ_WRITE) != 0;
   326   return (_flags & KIND_READ_WRITE) != 0;
   327 }
       
   328 
       
   329 bool JVMFlag::is_commercial() const {
       
   330   return (_flags & KIND_COMMERCIAL) != 0;
       
   331 }
   327 }
   332 
   328 
   333 /**
   329 /**
   334  * Returns if this flag is a constant in the binary.  Right now this is
   330  * Returns if this flag is a constant in the binary.  Right now this is
   335  * true for notproduct and develop flags in product builds.
   331  * true for notproduct and develop flags in product builds.
   640     { KIND_PLATFORM_DEPENDENT, "pd" },
   636     { KIND_PLATFORM_DEPENDENT, "pd" },
   641     { KIND_PRODUCT, "product" },
   637     { KIND_PRODUCT, "product" },
   642     { KIND_MANAGEABLE, "manageable" },
   638     { KIND_MANAGEABLE, "manageable" },
   643     { KIND_DIAGNOSTIC, "diagnostic" },
   639     { KIND_DIAGNOSTIC, "diagnostic" },
   644     { KIND_EXPERIMENTAL, "experimental" },
   640     { KIND_EXPERIMENTAL, "experimental" },
   645     { KIND_COMMERCIAL, "commercial" },
       
   646     { KIND_NOT_PRODUCT, "notproduct" },
   641     { KIND_NOT_PRODUCT, "notproduct" },
   647     { KIND_DEVELOP, "develop" },
   642     { KIND_DEVELOP, "develop" },
   648     { KIND_LP64_PRODUCT, "lp64_product" },
   643     { KIND_LP64_PRODUCT, "lp64_product" },
   649     { KIND_READ_WRITE, "rw" },
   644     { KIND_READ_WRITE, "rw" },
   650     { -1, "" }
   645     { -1, "" }
   909       }
   904       }
   910       // Report locked flags only if allowed.
   905       // Report locked flags only if allowed.
   911       if (!(current->is_unlocked() || current->is_unlocker())) {
   906       if (!(current->is_unlocked() || current->is_unlocker())) {
   912         if (!allow_locked) {
   907         if (!allow_locked) {
   913           // disable use of locked flags, e.g. diagnostic, experimental,
   908           // disable use of locked flags, e.g. diagnostic, experimental,
   914           // commercial... until they are explicitly unlocked
   909           // etc. until they are explicitly unlocked
   915           return NULL;
   910           return NULL;
   916         }
   911         }
   917       }
   912       }
   918       return current;
   913       return current;
   919     }
   914     }