< prev index next >
src/share/vm/memory/blockOffsetTable.cpp
Print this page
rev 7793 : 8073315: Enable gcc -Wtype-limits and fix upcoming issues.
Summary: Relevant fixes in blockOffsetTable.cpp, os_linux.cpp, parCardTableModRefBS.cpp.
@@ -790,8 +790,8 @@
size_t bottom_index = _array->index_for(_bottom);
_array->set_offset_array(bottom_index, 0);
}
size_t BlockOffsetArrayContigSpace::last_active_index() const {
- size_t result = _next_offset_index - 1;
- return result >= 0 ? result : 0;
+ size_t next = _next_offset_index;
+ return next == 0 ? 0 : next - 1;
}
< prev index next >