1282 *n = count; |
1282 *n = count; |
1283 return opath; |
1283 return opath; |
1284 } |
1284 } |
1285 |
1285 |
1286 void os::set_memory_serialize_page(address page) { |
1286 void os::set_memory_serialize_page(address page) { |
1287 int count = log2_intptr(sizeof(class JavaThread)) - log2_intptr(64); |
1287 int count = log2_intptr(sizeof(class JavaThread)) - log2_int(64); |
1288 _mem_serialize_page = (volatile int32_t *)page; |
1288 _mem_serialize_page = (volatile int32_t *)page; |
1289 // We initialize the serialization page shift count here |
1289 // We initialize the serialization page shift count here |
1290 // We assume a cache line size of 64 bytes |
1290 // We assume a cache line size of 64 bytes |
1291 assert(SerializePageShiftCount == count, |
1291 assert(SerializePageShiftCount == count, |
1292 "thread size changed, fix SerializePageShiftCount constant"); |
1292 "thread size changed, fix SerializePageShiftCount constant"); |