src/share/vm/runtime/commandLineFlagRangeList.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
8059557_rev2_to_rev3 Cdiff src/share/vm/runtime/commandLineFlagRangeList.hpp
src/share/vm/runtime/commandLineFlagRangeList.hpp
Print this page
*** 37,62 ****
* constant and can not change. If either "min" or "max" can change,
* then we need to use constraint instead.
*/
class CommandLineFlagRange : public CHeapObj<mtInternal> {
! public:
const char* _name;
CommandLineFlagRange(const char* name) { _name=name; }
~CommandLineFlagRange() {}
const char* name() { return _name; }
! virtual Flag::Error check_int(int value, bool verbose = true) { return Flag::SUCCESS; }
! virtual Flag::Error check_intx(intx value, bool verbose = true) { return Flag::SUCCESS; }
! virtual Flag::Error check_uint(uint value, bool verbose = true) { return Flag::SUCCESS; }
! virtual Flag::Error check_uintx(uintx value, bool verbose = true) { return Flag::SUCCESS; }
! virtual Flag::Error check_uint64_t(uint64_t value, bool verbose = true) { return Flag::SUCCESS; }
! virtual Flag::Error check_size_t(size_t value, bool verbose = true) { return Flag::SUCCESS; }
! virtual Flag::Error check_double(double value, bool verbose = true) { return Flag::SUCCESS; }
virtual void print(outputStream* st) { ; }
};
! class CommandLineFlagRangeList : public CHeapObj<mtInternal> {
static GrowableArray<CommandLineFlagRange*>* _ranges;
public:
static void init();
static void add_globals_ext();
static int length() { return (_ranges != NULL) ? _ranges->length() : 0; }
--- 37,64 ----
* constant and can not change. If either "min" or "max" can change,
* then we need to use constraint instead.
*/
class CommandLineFlagRange : public CHeapObj<mtInternal> {
! private:
const char* _name;
+ public:
+ // the "name" argument must be a string literal
CommandLineFlagRange(const char* name) { _name=name; }
~CommandLineFlagRange() {}
const char* name() { return _name; }
! virtual Flag::Error check_int(int value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; }
! virtual Flag::Error check_intx(intx value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; }
! virtual Flag::Error check_uint(uint value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; }
! virtual Flag::Error check_uintx(uintx value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; }
! virtual Flag::Error check_uint64_t(uint64_t value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; }
! virtual Flag::Error check_size_t(size_t value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; }
! virtual Flag::Error check_double(double value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; }
virtual void print(outputStream* st) { ; }
};
! class CommandLineFlagRangeList : public AllStatic {
static GrowableArray<CommandLineFlagRange*>* _ranges;
public:
static void init();
static void add_globals_ext();
static int length() { return (_ranges != NULL) ? _ranges->length() : 0; }
src/share/vm/runtime/commandLineFlagRangeList.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File