src/share/vm/runtime/commandLineFlagConstraintsRuntime.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/runtime/commandLineFlagConstraintsRuntime.cpp Tue Jun 16 15:48:03 2015
--- new/src/share/vm/runtime/commandLineFlagConstraintsRuntime.cpp Tue Jun 16 15:48:03 2015
*** 24,52 ****
--- 24,50 ----
#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);
! "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=%d must be less than page size "INTX_FORMAT"\n",
! *value, os::vm_page_size());
! "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