src/share/vm/runtime/commandLineFlagConstraintsRuntime.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
8059557_rev2_to_rev3 Cdiff src/share/vm/runtime/commandLineFlagConstraintsRuntime.cpp
src/share/vm/runtime/commandLineFlagConstraintsRuntime.cpp
Print this page
*** 24,52 ****
#include "precompiled.hpp"
#include "runtime/arguments.hpp"
#include "runtime/commandLineFlagConstraintsRuntime.hpp"
#include "runtime/globals.hpp"
- #include "runtime/java.hpp"
- #include "runtime/os.hpp"
#include "utilities/defaultStream.hpp"
Flag::Error ObjectAlignmentInBytesConstraintFunc(bool verbose, intx* value) {
if (!is_power_of_2(*value)) {
if (verbose == true) {
jio_fprintf(defaultStream::error_stream(),
! "ObjectAlignmentInBytes=%d must be power of 2\n",
! (int)*value);
}
return Flag::VIOLATES_CONSTRAINT;
}
// In case page size is very small.
! if (*value >= (int)os::vm_page_size()) {
if (verbose == true) {
jio_fprintf(defaultStream::error_stream(),
! "ObjectAlignmentInBytes=%d must be less than page size "INTX_FORMAT"\n",
! *value, os::vm_page_size());
}
return Flag::VIOLATES_CONSTRAINT;
}
return Flag::SUCCESS;
}
--- 24,50 ----
#include "precompiled.hpp"
#include "runtime/arguments.hpp"
#include "runtime/commandLineFlagConstraintsRuntime.hpp"
#include "runtime/globals.hpp"
#include "utilities/defaultStream.hpp"
Flag::Error ObjectAlignmentInBytesConstraintFunc(bool verbose, intx* value) {
if (!is_power_of_2(*value)) {
if (verbose == true) {
jio_fprintf(defaultStream::error_stream(),
! "ObjectAlignmentInBytes=" INTX_FORMAT " must be power of 2\n",
! *value);
}
return Flag::VIOLATES_CONSTRAINT;
}
// In case page size is very small.
! if (*value >= (intx)os::vm_page_size()) {
if (verbose == true) {
jio_fprintf(defaultStream::error_stream(),
! "ObjectAlignmentInBytes=" INTX_FORMAT " must be less than page size " INTX_FORMAT "\n",
! *value, (intx)os::vm_page_size());
}
return Flag::VIOLATES_CONSTRAINT;
}
return Flag::SUCCESS;
}
src/share/vm/runtime/commandLineFlagConstraintsRuntime.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File