--- a/hotspot/src/share/vm/ci/bcEscapeAnalyzer.cpp Tue Jul 04 15:58:10 2017 +0200
+++ b/hotspot/src/share/vm/ci/bcEscapeAnalyzer.cpp Thu Apr 13 09:57:51 2017 +0200
@@ -218,7 +218,7 @@
assert(arg >= 0 && arg < _arg_size, "must be an argument.");
bool modified = false;
int l = offset / HeapWordSize;
- int h = round_to(offset + size_in_bytes, HeapWordSize) / HeapWordSize;
+ int h = align_up(offset + size_in_bytes, HeapWordSize) / HeapWordSize;
if (l > ARG_OFFSET_MAX)
l = ARG_OFFSET_MAX;
if (h > ARG_OFFSET_MAX+1)
@@ -236,7 +236,7 @@
}
assert(arg >= 0 && arg < _arg_size, "must be an argument.");
int l = offset / HeapWordSize;
- int h = round_to(offset + size_in_bytes, HeapWordSize) / HeapWordSize;
+ int h = align_up(offset + size_in_bytes, HeapWordSize) / HeapWordSize;
if (l > ARG_OFFSET_MAX)
l = ARG_OFFSET_MAX;
if (h > ARG_OFFSET_MAX+1)