equal
deleted
inserted
replaced
1282 void os::set_memory_serialize_page(address page) { |
1282 void os::set_memory_serialize_page(address page) { |
1283 int count = log2_intptr(sizeof(class JavaThread)) - log2_intptr(64); |
1283 int count = log2_intptr(sizeof(class JavaThread)) - log2_intptr(64); |
1284 _mem_serialize_page = (volatile int32_t *)page; |
1284 _mem_serialize_page = (volatile int32_t *)page; |
1285 // We initialize the serialization page shift count here |
1285 // We initialize the serialization page shift count here |
1286 // We assume a cache line size of 64 bytes |
1286 // We assume a cache line size of 64 bytes |
1287 assert(SerializePageShiftCount == count, |
1287 assert(SerializePageShiftCount == count, "JavaThread size changed; " |
1288 "thread size changed, fix SerializePageShiftCount constant"); |
1288 "SerializePageShiftCount constant should be %d", count); |
1289 set_serialize_page_mask((uintptr_t)(vm_page_size() - sizeof(int32_t))); |
1289 set_serialize_page_mask((uintptr_t)(vm_page_size() - sizeof(int32_t))); |
1290 } |
1290 } |
1291 |
1291 |
1292 static volatile intptr_t SerializePageLock = 0; |
1292 static volatile intptr_t SerializePageLock = 0; |
1293 |
1293 |