Lines Matching full:lr_array
460 static LossRecord** lr_array;
878 // allocates or reallocates lr_array, and set its elements to the loss records
887 // lr_array is kept to allow producing the block list from gdbserver.
888 if (lr_array != NULL)
889 VG_(free)(lr_array);
890 lr_array = VG_(malloc)("mc.pr.2", n_lossrecords * sizeof(LossRecord*));
894 lr_array[i++] = lr;
987 if (lr_array[i]->num_blocks == 0) {
989 VG_(OSetGen_Remove) (lr_table, &lr_array[i]->key);
990 VG_(OSetGen_FreeNode)(lr_table, lr_array[i]);
994 lr_array[i]->old_szB = lr_array[i]->szB;
995 lr_array[i]->old_indirect_szB = lr_array[i]->indirect_szB;
996 lr_array[i]->old_num_blocks = lr_array[i]->num_blocks;
997 lr_array[i]->szB = 0;
998 lr_array[i]->indirect_szB = 0;
999 lr_array[i]->num_blocks = 0;
1002 // lr_array now contains "invalid" loss records => free it.
1003 // lr_array will be re-created below with the kept and new loss records.
1004 VG_(free) (lr_array);
1005 lr_array = NULL;
1048 VG_(ssort)(lr_array, n_lossrecords, sizeof(LossRecord*),
1068 lr = lr_array[i];
1087 lr = lr_array[i];
1191 if (ind_lr == lr_array[lr_i])
1226 tl_assert (lr_array);
1227 lr = lr_array[loss_record_nr];
1246 if (old_lr == lr_array[loss_record_nr]) {
1517 // lc_chunks, lc_extras, lr_array and lr_table are kept (needed if user