src/share/vm/runtime/os.cpp

changeset 9614
bb44c0e88235
parent 9478
f3108e56b502
child 9637
eef07cd490d4
child 9891
4904bded9702
equal deleted inserted replaced
9613:67aa2bb0d84e 9614:bb44c0e88235
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