Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit338ac21

Browse files
committed
pathman: dsm allocation fix
1 parent60dda54 commit338ac21

File tree

2 files changed

+4
-193
lines changed

2 files changed

+4
-193
lines changed

‎contrib/pathman/dsm_array.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,14 @@ free_dsm_array(DsmArray *arr)
151151
/* set blocks free */
152152
for(;;i++)
153153
{
154-
table->blocks[start+i].is_free=false;
154+
table->blocks[start+i].is_free=true;
155155
if (i*table->block_size >=arr->length)
156156
break;
157157
}
158158

159+
if (arr->offset<table->first_free)
160+
table->first_free=arr->offset;
161+
159162
arr->offset=0;
160163
arr->length=0;
161164
}

‎contrib/pathman/expected/pathman.out

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp