107
108 const int WordAlignmentMask = (1 << LogBytesPerWord) - 1;
109 const int LongAlignmentMask = (1 << LogBytesPerLong) - 1;
110
111 const int WordsPerLong = 2; // Number of stack entries for longs
112
113 const int oopSize = sizeof(char*); // Full-width oop
114 extern int heapOopSize; // Oop within a java object
115 const int wordSize = sizeof(char*);
116 const int longSize = sizeof(jlong);
117 const int jintSize = sizeof(jint);
118 const int size_tSize = sizeof(size_t);
119
120 const int BytesPerOop = BytesPerWord; // Full-width oop
121
122 extern int LogBytesPerHeapOop; // Oop within a java object
123 extern int LogBitsPerHeapOop;
124 extern int BytesPerHeapOop;
125 extern int BitsPerHeapOop;
126
127 // Oop encoding heap max
128 extern uint64_t OopEncodingHeapMax;
129
130 const int BitsPerJavaInteger = 32;
131 const int BitsPerJavaLong = 64;
132 const int BitsPerSize_t = size_tSize * BitsPerByte;
133
134 // Size of a char[] needed to represent a jint as a string in decimal.
135 const int jintAsStringSize = 12;
136
137 // In fact this should be
138 // log2_intptr(sizeof(class JavaThread)) - log2_intptr(64);
139 // see os::set_memory_serialize_page()
140 #ifdef _LP64
141 const int SerializePageShiftCount = 4;
142 #else
143 const int SerializePageShiftCount = 3;
144 #endif
145
146 // An opaque struct of heap-word width, so that HeapWord* can be a generic
147 // pointer into the heap. We require that object sizes be measured in
|
107
108 const int WordAlignmentMask = (1 << LogBytesPerWord) - 1;
109 const int LongAlignmentMask = (1 << LogBytesPerLong) - 1;
110
111 const int WordsPerLong = 2; // Number of stack entries for longs
112
113 const int oopSize = sizeof(char*); // Full-width oop
114 extern int heapOopSize; // Oop within a java object
115 const int wordSize = sizeof(char*);
116 const int longSize = sizeof(jlong);
117 const int jintSize = sizeof(jint);
118 const int size_tSize = sizeof(size_t);
119
120 const int BytesPerOop = BytesPerWord; // Full-width oop
121
122 extern int LogBytesPerHeapOop; // Oop within a java object
123 extern int LogBitsPerHeapOop;
124 extern int BytesPerHeapOop;
125 extern int BitsPerHeapOop;
126
127 // 4Gb
128 static const uint64_t UnscaledOopHeapMax = 0x100000000;
129 // Oop encoding heap max: UnscaledOopHeapMax << LogMinObjAlignmentInBytes
130 extern uint64_t OopEncodingHeapMax;
131
132 const int BitsPerJavaInteger = 32;
133 const int BitsPerJavaLong = 64;
134 const int BitsPerSize_t = size_tSize * BitsPerByte;
135
136 // Size of a char[] needed to represent a jint as a string in decimal.
137 const int jintAsStringSize = 12;
138
139 // In fact this should be
140 // log2_intptr(sizeof(class JavaThread)) - log2_intptr(64);
141 // see os::set_memory_serialize_page()
142 #ifdef _LP64
143 const int SerializePageShiftCount = 4;
144 #else
145 const int SerializePageShiftCount = 3;
146 #endif
147
148 // An opaque struct of heap-word width, so that HeapWord* can be a generic
149 // pointer into the heap. We require that object sizes be measured in
|