summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 2b243d9e66..0f10c633f9 100644
--- a/hash.c
+++ b/hash.c
@@ -7051,6 +7051,10 @@ static const rb_data_type_t env_data_type = {
*
* Note that setting the default proc will clear the default value and vice versa.
*
+ * Be aware that a default proc that modifies the hash is not thread-safe in the
+ * sense that multiple threads can call into the default proc concurrently for the
+ * same key.
+ *
* === What's Here
*
* First, what's elsewhere. \Class \Hash: