Skip to content

Commit

Permalink
FIX: Freelist allocated objects (tiles, ways, trees etc.) use 3x more…
Browse files Browse the repository at this point in the history
… memory than necessary

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11632 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
ceeac committed Feb 5, 2025
1 parent 8eb6949 commit 53fb09c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions simutrans/history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
FIX: Pak files cannot represent runningcost of vehicles exceeding 2^16-1 Simu-cents
FIX: Pak files cannot represent fixed cost of vehicles exceeding 2^32-1 Simu-cents
FIX: makro building with way order and stations extensions fixed
FIX: Freelist allocated objects (tiles, ways, trees etc.) use 3x more memory than necessary


Release of 124.3 (r11590 on 10-Jan-2025):
Expand Down
2 changes: 1 addition & 1 deletion src/simutrans/dataobj/freelist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void* freelist_t::gimme_node(size_t size)
#ifdef MULTI_THREAD
pthread_mutex_lock(&freelist_mutex_create);
#endif
all_lists[idx] = new freelist_size_t(size * 4);
all_lists[idx] = new freelist_size_t(idx * 4);
#ifdef MULTI_THREAD
pthread_mutex_unlock(&freelist_mutex_create);
#endif
Expand Down

0 comments on commit 53fb09c

Please sign in to comment.