Lines Matching refs:zcurrent
496 static int zcurrent = 0; /* index of the next slot in the log to use */
1894 if (!corruption_debug_flag && zrecords[zcurrent].z_element && zrecorded < log_records) {
1899 * starting at zcurrent and wrap-around if we reach the end of the buffer. If the buffer
1900 * is already full, we just fall through and overwrite the element indexed by zcurrent.
1903 for (i = zcurrent; i < log_records; i++) {
1905 zcurrent = i;
1910 for (i = 0; i < zcurrent; i++) {
1912 zcurrent = i;
1923 if (zrecords[zcurrent].z_element == NULL)
1926 zrecords[zcurrent].z_element = (void *)addr;
1927 zrecords[zcurrent].z_time = ztime++;
1928 zrecords[zcurrent].z_opcode = ZOP_ALLOC;
1931 zrecords[zcurrent].z_pc[i] = (void*) zbt[i];
1934 zrecords[zcurrent].z_pc[i] = 0;
1936 zcurrent++;
1938 if (zcurrent >= log_records)
1939 zcurrent = 0;
2151 if (zrecords[zcurrent].z_element == NULL)
2154 zrecords[zcurrent].z_element = (void *)addr;
2155 zrecords[zcurrent].z_time = ztime++;
2156 zrecords[zcurrent].z_opcode = ZOP_FREE;
2159 zrecords[zcurrent].z_pc[i] = zbt[i];
2162 zrecords[zcurrent].z_pc[i] = 0;
2164 zcurrent++;
2166 if (zcurrent >= log_records)
2167 zcurrent = 0;
2181 zcurrent = i;