src/share/vm/runtime/os.cpp

changeset 9637
eef07cd490d4
parent 9572
624a0741915c
parent 9614
bb44c0e88235
child 9706
8c67a8d09196
equal deleted inserted replaced
9581:95fce20624fc 9637:eef07cd490d4
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");

mercurial