src/share/vm/runtime/commandLineFlagConstraintList.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
8059557_rev2_to_rev3 Cdiff src/share/vm/runtime/commandLineFlagConstraintList.hpp
src/share/vm/runtime/commandLineFlagConstraintList.hpp
Print this page
*** 47,72 ****
typedef Flag::Error (*CommandLineFlagConstraintFunc_uint64_t)(bool verbose, uint64_t* value);
typedef Flag::Error (*CommandLineFlagConstraintFunc_size_t)(bool verbose, size_t* value);
typedef Flag::Error (*CommandLineFlagConstraintFunc_double)(bool verbose, double* value);
class CommandLineFlagConstraint : public CHeapObj<mtInternal> {
! public:
const char* _name;
CommandLineFlagConstraint(const char* name) { _name=name; };
~CommandLineFlagConstraint() {};
const char* name() { return _name; }
! virtual Flag::Error apply_bool(bool* value, bool verbose = true) { return Flag::SUCCESS; };
! virtual Flag::Error apply_int(int* value, bool verbose = true) { return Flag::SUCCESS; };
! virtual Flag::Error apply_intx(intx* value, bool verbose = true) { return Flag::SUCCESS; };
! virtual Flag::Error apply_uint(uint* value, bool verbose = true) { return Flag::SUCCESS; };
! virtual Flag::Error apply_uintx(uintx* value, bool verbose = true) { return Flag::SUCCESS; };
! virtual Flag::Error apply_uint64_t(uint64_t* value, bool verbose = true) { return Flag::SUCCESS; };
! virtual Flag::Error apply_size_t(size_t* value, bool verbose = true) { return Flag::SUCCESS; };
! virtual Flag::Error apply_double(double* value, bool verbose = true) { return Flag::SUCCESS; };
};
! class CommandLineFlagConstraintList : public CHeapObj<mtInternal> {
static GrowableArray<CommandLineFlagConstraint*>* _constraints;
public:
static void init();
static int length() { return (_constraints != NULL) ? _constraints->length() : 0; }
static CommandLineFlagConstraint* at(int i) { return (_constraints != NULL) ? _constraints->at(i) : NULL; }
--- 47,75 ----
typedef Flag::Error (*CommandLineFlagConstraintFunc_uint64_t)(bool verbose, uint64_t* value);
typedef Flag::Error (*CommandLineFlagConstraintFunc_size_t)(bool verbose, size_t* value);
typedef Flag::Error (*CommandLineFlagConstraintFunc_double)(bool verbose, double* value);
class CommandLineFlagConstraint : public CHeapObj<mtInternal> {
! private:
const char* _name;
+ public:
+ // the "name" argument must be a string literal
CommandLineFlagConstraint(const char* name) { _name=name; };
~CommandLineFlagConstraint() {};
const char* name() { return _name; }
! virtual Flag::Error apply_bool(bool* value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; };
! virtual Flag::Error apply_int(int* value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; };
! virtual Flag::Error apply_intx(intx* value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; };
! virtual Flag::Error apply_uint(uint* value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; };
! virtual Flag::Error apply_uintx(uintx* value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; };
! virtual Flag::Error apply_uint64_t(uint64_t* value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; };
! virtual Flag::Error apply_size_t(size_t* value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; };
! virtual Flag::Error apply_double(double* value, bool verbose = true) { ShouldNotReachHere(); return Flag::ERR_OTHER; };
};
! class CommandLineFlagConstraintList : public AllStatic {
! private:
static GrowableArray<CommandLineFlagConstraint*>* _constraints;
public:
static void init();
static int length() { return (_constraints != NULL) ? _constraints->length() : 0; }
static CommandLineFlagConstraint* at(int i) { return (_constraints != NULL) ? _constraints->at(i) : NULL; }
src/share/vm/runtime/commandLineFlagConstraintList.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File