Skip to content

Commit

Permalink
TRY Reduce size of HashDbTerm on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sverker committed Jun 19, 2024
1 parent caf311c commit 7755458
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erts/emulator/beam/erl_db_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ typedef Uint32 HashVal;
typedef struct hash_db_term {
struct hash_db_term* next; /* next bucket */
UWord hvalue : sizeof(UWord)*8 - 1; /* stored hash value */
bool pseudo_deleted : 1;
// Seems Windows makes HashDbTerm one word too large.
// Check if UWord instead of bool does the trick
UWord pseudo_deleted : 1;

DbTerm dbterm; /* The actual term */
} HashDbTerm;

Expand Down

0 comments on commit 7755458

Please sign in to comment.