< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page




 693         warning("Special flag entry \"%s\" must be deprecated before obsoleted.", flag.name);
 694         success = false;
 695       }
 696 
 697       if (!version_less_than(flag.deprecated_in, flag.expired_in)) {
 698         warning("Special flag entry \"%s\" must be deprecated before expired.", flag.name);
 699         success = false;
 700       }
 701     }
 702 
 703     if (!flag.obsolete_in.is_undefined()) {
 704       if (!version_less_than(flag.obsolete_in, flag.expired_in)) {
 705         warning("Special flag entry \"%s\" must be obsoleted before expired.", flag.name);
 706         success = false;
 707       }
 708 
 709       // if flag has become obsolete it should not have a "globals" flag defined anymore.
 710       if (!version_less_than(JDK_Version::current(), flag.obsolete_in)) {
 711         if (Flag::find_flag(flag.name) != NULL) {
 712           warning("Global variable for obsolete special flag entry \"%s\" should be removed", flag.name);
 713           success = false;
 714         }
 715       }
 716     }
 717 
 718     if (!flag.expired_in.is_undefined()) {
 719       // if flag has become expired it should not have a "globals" flag defined anymore.
 720       if (!version_less_than(JDK_Version::current(), flag.expired_in)) {
 721         if (Flag::find_flag(flag.name) != NULL) {
 722           warning("Global variable for expired flag entry \"%s\" should be removed", flag.name);
 723           success = false;
 724         }
 725       }
 726     }
 727 
 728   }
 729   return success;
 730 }
 731 #endif
 732 
 733 // Parses a size specification string.
 734 bool Arguments::atojulong(const char *s, julong* result) {
 735   julong n = 0;
 736 
 737   // First char must be a digit. Don't allow negative numbers or leading spaces.
 738   if (!isdigit(*s)) {
 739     return false;
 740   }
 741 
 742   bool is_hex = (s[0] == '0' && (s[1] == 'x' || s[1] == 'X'));
 743   char* remainder;




 693         warning("Special flag entry \"%s\" must be deprecated before obsoleted.", flag.name);
 694         success = false;
 695       }
 696 
 697       if (!version_less_than(flag.deprecated_in, flag.expired_in)) {
 698         warning("Special flag entry \"%s\" must be deprecated before expired.", flag.name);
 699         success = false;
 700       }
 701     }
 702 
 703     if (!flag.obsolete_in.is_undefined()) {
 704       if (!version_less_than(flag.obsolete_in, flag.expired_in)) {
 705         warning("Special flag entry \"%s\" must be obsoleted before expired.", flag.name);
 706         success = false;
 707       }
 708 
 709       // if flag has become obsolete it should not have a "globals" flag defined anymore.
 710       if (!version_less_than(JDK_Version::current(), flag.obsolete_in)) {
 711         if (Flag::find_flag(flag.name) != NULL) {
 712           warning("Global variable for obsolete special flag entry \"%s\" should be removed", flag.name);

 713         }
 714       }
 715     }
 716 
 717     if (!flag.expired_in.is_undefined()) {
 718       // if flag has become expired it should not have a "globals" flag defined anymore.
 719       if (!version_less_than(JDK_Version::current(), flag.expired_in)) {
 720         if (Flag::find_flag(flag.name) != NULL) {
 721           warning("Global variable for expired flag entry \"%s\" should be removed", flag.name);

 722         }
 723       }
 724     }
 725 
 726   }
 727   return success;
 728 }
 729 #endif
 730 
 731 // Parses a size specification string.
 732 bool Arguments::atojulong(const char *s, julong* result) {
 733   julong n = 0;
 734 
 735   // First char must be a digit. Don't allow negative numbers or leading spaces.
 736   if (!isdigit(*s)) {
 737     return false;
 738   }
 739 
 740   bool is_hex = (s[0] == '0' && (s[1] == 'x' || s[1] == 'X'));
 741   char* remainder;


< prev index next >