Re:A simple hash table in C
by cryptonector on Wednesday June 14, 2023 @07:54AM
(#36324482)
The real problem is resource management. If you have a threaded GC then you can just read, and the act of reading will cause the value you read to be alive. If you don't have a GC, however, you probably use reference counts, and now you may need to compose an atomic read of a pointer with an atomic reference count increment, but by the time you're doing the second step the object you're referencing may have been destructed.
[ Parent
| on HN ]
There are no comments on this comment yet.