Skip to content

Commit

Permalink
Fixed object release operation when maintaining coherency
Browse files Browse the repository at this point in the history
  • Loading branch information
werton authored Jul 24, 2024
1 parent 0377311 commit f71bbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void POOL_release(Pool* pool, void* object, bool maintainCoherency)
u16 objectIndex = *objectIndexP;

// replace with the overwritten one so we can use stack iteration
pool->allocStack[objectIndex] = prevObject;
pool->free[objectIndex] = prevObject;

// get previous object index
u16* prevObjectIndexP = ((u16*)prevObject) - 1;
Expand Down

0 comments on commit f71bbdb

Please sign in to comment.