|  line  | 
 true  | 
 false  | 
 branch  | 
 
| 
44
 | 
 0  | 
 86  | 
 	assert(!git__pack_cache);  | 
 
| 
56
 | 
 0  | 
 4  | 
 	if ((error = git_packfile__name(&packname, path)) < 0)  | 
 
| 
59
 | 
 0  | 
 4  | 
 	if (git_mutex_lock(&git__mwindow_mutex) < 0) {  | 
 
| 
67
 | 
 0  | 
 4  | 
 	if (pack != NULL) {  | 
 
| 
75
 | 
 0  | 
 4  | 
 	if ((error = git_packfile_alloc(&pack, path)) < 0) {  | 
 
| 
85
 | 
 0  | 
 4  | 
 	if (error < 0) {  | 
 
| 
98
 | 
 0  | 
 3  | 
 	if (git_mutex_lock(&git__mwindow_mutex) < 0)  | 
 
| 
102
 | 
 0  | 
 3  | 
 	assert(git__pack_cache);  | 
 
| 
105
 | 
 0  | 
 3  | 
 	assert(git_strmap_exists(git__pack_cache, pack->pack_name));  | 
 
| 
108
 | 
 3  | 
 0  | 
 	if (count == 0) {  | 
 
| 
119
 | 
 0  | 
 96  | 
 	if (git_mutex_lock(&git__mwindow_mutex)) {  | 
 
| 
141
 | 
 8  | 
 91  | 
 	for (i = 0; i < ctl->windowfiles.length; ++i){  | 
 
| 
142
 | 
 8  | 
 0  | 
 		if (git_vector_get(&ctl->windowfiles, i) == mwf) {  | 
 
| 
148
 | 
 99  | 
 0  | 
 	if (ctl->windowfiles.length == 0) {  | 
 
| 
153
 | 
 48  | 
 99  | 
 	while (mwf->windows) {  | 
 
| 
155
 | 
 0  | 
 48  | 
 		assert(w->inuse_cnt == 0);  | 
 
| 
174
 | 
 212  | 
 0  | 
 		&& offset <= (off64_t)(win_off + win->window_map.len);  | 
 
| 
 | 
 212  | 
 0  | 
 		&& offset <= (off64_t)(win_off + win->window_map.len);  | 
 
| 
187
 | 
 0  | 
 0  | 
 	for (w_l = NULL, w = mwf->windows; w; w = w->next) {  | 
 
| 
188
 | 
 0  | 
 0  | 
 		if (!w->inuse_cnt) {  | 
 
| 
194
 | 
 0  | 
 0  | 
 			if (!*lru_w || w->last_used < (*lru_w)->last_used) {  | 
 
| 
 | 
 0  | 
 0  | 
 			if (!*lru_w || w->last_used < (*lru_w)->last_used) {  | 
 
| 
215
 | 
 0  | 
 0  | 
 	if(mwf->windows)  | 
 
| 
218
 | 
 0  | 
 0  | 
 	for (i = 0; i < ctl->windowfiles.length; ++i) {  | 
 
| 
222
 | 
 0  | 
 0  | 
 		if (lru_w != last)  | 
 
| 
226
 | 
 0  | 
 0  | 
 	if (!lru_w) {  | 
 
| 
234
 | 
 0  | 
 0  | 
 	if (lru_l)  | 
 
| 
259
 | 
 0  | 
 48  | 
 	if (w == NULL)  | 
 
| 
266
 | 
 0  | 
 48  | 
 	if (len > (off64_t)git_mwindow__window_size)  | 
 
| 
280
 | 
 0  | 
 48  | 
 	if (git_futils_mmap_ro(&w->window_map, fd, w->offset, (size_t)len) < 0) {  | 
 
| 
286
 | 
 0  | 
 0  | 
 		while (git_mwindow_close_lru(mwf) == 0)  | 
 
| 
289
 | 
 0  | 
 0  | 
 		if (git_futils_mmap_ro(&w->window_map, fd, w->offset, (size_t)len) < 0) {  | 
 
| 
298
 | 
 23  | 
 25  | 
 	if (ctl->mapped > ctl->peak_mapped)  | 
 
| 
301
 | 
 3  | 
 45  | 
 	if (ctl->open_windows > ctl->peak_open_windows)  | 
 
| 
321
 | 
 0  | 
 154  | 
 	if (git_mutex_lock(&git__mwindow_mutex)) {  | 
 
| 
326
 | 
 0  | 
 154  | 
 	if (!w || !(git_mwindow_contains(w, offset) && git_mwindow_contains(w, offset + extra))) {  | 
 
| 
 | 
 0  | 
 0  | 
 	if (!w || !(git_mwindow_contains(w, offset) && git_mwindow_contains(w, offset + extra))) {  | 
 
| 
 | 
 0  | 
 0  | 
 	if (!w || !(git_mwindow_contains(w, offset) && git_mwindow_contains(w, offset + extra))) {  | 
 
| 
327
 | 
 0  | 
 154  | 
 		if (w) {  | 
 
| 
331
 | 
 106  | 
 48  | 
 		for (w = mwf->windows; w; w = w->next) {  | 
 
| 
341
 | 
 48  | 
 106  | 
 		if (!w) {  | 
 
| 
343
 | 
 0  | 
 48  | 
 			if (w == NULL) {  | 
 
| 
353
 | 
 154  | 
 0  | 
 	if (w != *cursor) {  | 
 
| 
361
 | 
 154  | 
 0  | 
 	if (left)  | 
 
| 
373
 | 
 0  | 
 8  | 
 	if (git_mutex_lock(&git__mwindow_mutex)) {  | 
 
| 
396
 | 
 0  | 
 0  | 
 	if (git_mutex_lock(&git__mwindow_mutex))  | 
 
| 
399
 | 
 0  | 
 0  | 
 	git_vector_foreach(&ctl->windowfiles, i, cur) {  | 
 
| 
400
 | 
 0  | 
 0  | 
 		if (cur == mwf) {  | 
 
| 
412
 | 
 154  | 
 50  | 
 	if (w) {  | 
 
| 
413
 | 
 0  | 
 154  | 
 		if (git_mutex_lock(&git__mwindow_mutex)) {  |