--- a/src/hotspot/share/memory/metaspace/rootChunkArea.cpp Wed Sep 11 17:36:28 2019 +0200
+++ b/src/hotspot/share/memory/metaspace/rootChunkArea.cpp Thu Sep 12 07:57:00 2019 +0200
@@ -541,7 +541,7 @@
// a given memory range. Memory range must be a multiple of root chunk size.
RootChunkAreaLUT::RootChunkAreaLUT(const MetaWord* base, size_t word_size)
: _base(base),
- _num(word_size / chklvl::MAX_CHUNK_WORD_SIZE),
+ _num((int)(word_size / chklvl::MAX_CHUNK_WORD_SIZE)),
_arr(NULL)
{
assert_is_aligned(word_size, chklvl::MAX_CHUNK_WORD_SIZE);