Skip to content

Commit

Permalink
Hotfix for fastsync patchset.
Browse files Browse the repository at this point in the history
  • Loading branch information
openglfreak committed Mar 14, 2021
1 parent 16a3ed5 commit 52ba819
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ index 25703ec121d..8386748db73 100644
+ if (!entry) fast_sync_cache[0] = fast_sync_cache_initial_block;
+ else
+ {
+ static const size_t size = FAST_SYNC_CACHE_BLOCK_SIZE * sizeof(struct fast_sync_cache_entry *);
+ static const size_t size = FAST_SYNC_CACHE_BLOCK_SIZE * sizeof(struct fast_sync_cache_entry);
+ void *ptr = anon_mmap_alloc( size, PROT_READ | PROT_WRITE );
+ if (ptr == MAP_FAILED) return NULL;
+ if (InterlockedCompareExchangePointer( (void **)&fast_sync_cache[entry], ptr, NULL ))
Expand Down

0 comments on commit 52ba819

Please sign in to comment.