< prev index next >

src/hotspot/share/utilities/sizes.hpp

Print this page

        

*** 58,68 **** // b) change all WordSize's to ByteSize's where desired and fix the compilation errors #ifdef ASSERT ! class ByteSize VALUE_OBJ_CLASS_SPEC { private: int _size; // Note: This constructor must be private to avoid implicit conversions! ByteSize(int size) { _size = size; } --- 58,68 ---- // b) change all WordSize's to ByteSize's where desired and fix the compilation errors #ifdef ASSERT ! class ByteSize { private: int _size; // Note: This constructor must be private to avoid implicit conversions! ByteSize(int size) { _size = size; }
*** 90,100 **** inline ByteSize in_ByteSize(int size) { return ByteSize(size); } inline int in_bytes(ByteSize x) { return x._size; } ! class WordSize VALUE_OBJ_CLASS_SPEC { private: int _size; // Note: This constructor must be private to avoid implicit conversions! WordSize(int size) { _size = size; } --- 90,100 ---- inline ByteSize in_ByteSize(int size) { return ByteSize(size); } inline int in_bytes(ByteSize x) { return x._size; } ! class WordSize { private: int _size; // Note: This constructor must be private to avoid implicit conversions! WordSize(int size) { _size = size; }
< prev index next >