Skip to content

Commit

Permalink
Re #1791 more accurate identification of last free memory object
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jan 23, 2025
1 parent 661e15a commit 912e826
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@
self.unique_objects_{old_gidx} = [];
self.stored_hashes_{old_gidx} = '';
if old_gidx == self.max_obj_idx_
self.max_obj_idx_ = self.max_obj_idx_-1; %find(self.n_duplicates_>0,1,"last")
% more accurate identification of occupied global indices spawn,
% as deleteon of the last object in store may open number of free spaces present
% before last object because of previous object deletions
self.max_obj_idx_ = find(self.n_duplicates_>0,1,"last");
end
end
% increase number of duplicates at target
Expand Down

0 comments on commit 912e826

Please sign in to comment.