File tree 1 file changed +3
-2
lines changed
src/hotspot/share/utilities
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2019, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019, 2022 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -103,7 +103,8 @@ inline T round_down_power_of_2(T value) {
103
103
template <typename T, ENABLE_IF(std::is_integral<T>::value)>
104
104
inline T round_up_power_of_2 (T value) {
105
105
assert (value > 0 , " Invalid value" );
106
- assert (value <= max_power_of_2<T>(), " Overflow" );
106
+ assert (value <= max_power_of_2<T>(), " Overflowing maximum allowed power of two with " UINT64_FORMAT_X,
107
+ static_cast <uint64_t >(value));
107
108
if (is_power_of_2 (value)) {
108
109
return value;
109
110
}
You can’t perform that action at this time.
0 commit comments