src/share/vm/runtime/commandLineFlagConstraintList.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
8112746 Cdiff src/share/vm/runtime/commandLineFlagConstraintList.hpp
src/share/vm/runtime/commandLineFlagConstraintList.hpp
Print this page
*** 37,54 ****
* See runtime "runtime/commandLineFlagConstraintsCompiler.hpp",
* "runtime/commandLineFlagConstraintsGC.hpp" and
* "runtime/commandLineFlagConstraintsRuntime.hpp" for the functions themselves.
*/
! typedef Flag::Error (*CommandLineFlagConstraintFunc_bool)(bool verbose, bool* value);
! typedef Flag::Error (*CommandLineFlagConstraintFunc_int)(bool verbose, int* value);
! typedef Flag::Error (*CommandLineFlagConstraintFunc_intx)(bool verbose, intx* value);
! typedef Flag::Error (*CommandLineFlagConstraintFunc_uint)(bool verbose, uint* value);
! typedef Flag::Error (*CommandLineFlagConstraintFunc_uintx)(bool verbose, uintx* value);
! 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:
// During VM initialization, constraint validation will be done order of ConstraintType.
enum ConstraintType {
--- 37,54 ----
* See runtime "runtime/commandLineFlagConstraintsCompiler.hpp",
* "runtime/commandLineFlagConstraintsGC.hpp" and
* "runtime/commandLineFlagConstraintsRuntime.hpp" for the functions themselves.
*/
! typedef Flag::Error (*CommandLineFlagConstraintFunc_bool)(bool verbose, bool value);
! typedef Flag::Error (*CommandLineFlagConstraintFunc_int)(bool verbose, int value);
! typedef Flag::Error (*CommandLineFlagConstraintFunc_intx)(bool verbose, intx value);
! typedef Flag::Error (*CommandLineFlagConstraintFunc_uint)(bool verbose, uint value);
! typedef Flag::Error (*CommandLineFlagConstraintFunc_uintx)(bool verbose, uintx value);
! 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:
// During VM initialization, constraint validation will be done order of ConstraintType.
enum ConstraintType {
*** 68,85 ****
// the "name" argument must be a string literal
CommandLineFlagConstraint(const char* name, ConstraintType type) { _name=name; _validate_type=type; };
~CommandLineFlagConstraint() {};
const char* name() const { return _name; }
ConstraintType type() const { return _validate_type; }
! 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;
--- 68,85 ----
// the "name" argument must be a string literal
CommandLineFlagConstraint(const char* name, ConstraintType type) { _name=name; _validate_type=type; };
~CommandLineFlagConstraint() {};
const char* name() const { return _name; }
ConstraintType type() const { return _validate_type; }
! 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;
src/share/vm/runtime/commandLineFlagConstraintList.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File