8056175: Change "8048150: Allow easy configurations for large CDS archives" triggers conversion warning with older GCC
authorccheung
Wed, 27 Aug 2014 10:42:28 -0700
changeset 26408 d6defe172e25
parent 26305 352debf44a39
child 26409 9f717958a2bb
child 26412 80741eb33ba2
8056175: Change "8048150: Allow easy configurations for large CDS archives" triggers conversion warning with older GCC Summary: cast the result of the conversion to uintx Reviewed-by: ccheung, coleenp Contributed-by: volker.simonis@gmail.com
hotspot/src/share/vm/memory/metaspaceShared.hpp
--- a/hotspot/src/share/vm/memory/metaspaceShared.hpp	Tue Aug 26 13:07:57 2014 -0700
+++ b/hotspot/src/share/vm/memory/metaspaceShared.hpp	Wed Aug 27 10:42:28 2014 -0700
@@ -41,7 +41,7 @@
 
 #define SET_ESTIMATED_SIZE(type, region)                              \
   Shared ##region## Size  = FLAG_IS_DEFAULT(Shared ##region## Size) ? \
-    (type ## SharedArchiveSize *  region ## RegionPercentage) : Shared ## region ## Size
+    (uintx)(type ## SharedArchiveSize *  region ## RegionPercentage) : Shared ## region ## Size
 
 class FileMapInfo;