Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 1, 2019

Although TsHashTable and the according API are supposed to easily make
a HashTable thread-safe, they do not; for instance, there can be race
conditions between finding and updating entries. We therefore avoid
the usage of TsHashTable in favor of a HashTable with our own mutex
management.

The patch has been provided by krakjoe@php.net; I only did some minor
fixes and tweaks.

Although TsHashTable and the according API are supposed to easily make
a HashTable thread-safe, they do not; for instance, there can be race
conditions between finding and updating entries.  We therefore avoid
the usage of TsHashTable in favor of a HashTable with our own mutex
management.

The patch has been provided by krakjoe@php.net; I only did some minor
fixes and tweaks.
@cmb69
Copy link
Member Author

cmb69 commented Jul 1, 2019

cc @weltling

@cmb69
Copy link
Member Author

cmb69 commented Jul 2, 2019

If there are no objections, I'll merge this on 2019-07-08 (so it makes it into PHP 7.4.0alpha3)

@cmb69
Copy link
Member Author

cmb69 commented Jul 8, 2019

Applied as 98b6330. Thanks!

@cmb69 cmb69 closed this Jul 8, 2019
@cmb69 cmb69 deleted the tshashtable branch July 8, 2019 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant