8183574: Unify the is_power_of_2 functions

Reviewed-by: kbarrett, redestad
This commit is contained in:
Stefan Karlsson 2020-02-17 10:03:17 +01:00
parent 248b61710e
commit e4b27a48a0
100 changed files with 183 additions and 75 deletions

View file

@ -29,6 +29,7 @@
#include "runtime/globals.hpp"
#include "runtime/safepointMechanism.hpp"
#include "runtime/task.hpp"
#include "utilities/powerOfTwo.hpp"
JVMFlag::Error ObjectAlignmentInBytesConstraintFunc(intx value, bool verbose) {
if (!is_power_of_2(value)) {