src/hotspot/share/memory/metaspace/rootChunkArea.cpp
branchstuefe-new-metaspace-branch
changeset 58099 5aeb07390c74
parent 58063 bdf136b8ae0e
child 58227 0e7d9a23261e
--- 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);