summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-02-12 17:08:57 -0700
committerKarl Williamson <public@khwilliamson.com>2014-02-13 11:37:34 -0700
commita0078ba64def2b3c0a1dc635f98aac77e71a4eca (patch)
tree553e46b49e5dc6c5a6766e9d61fbe1d1175ec837 /sv.c
parentfb2873e0abedfd21b7f75ff60cc02d89f93f4d0c (diff)
downloadperl-a0078ba64def2b3c0a1dc635f98aac77e71a4eca.tar.gz
sv.c: Add comment
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 937e7438b2..89b5a89f35 100644
--- a/sv.c
+++ b/sv.c
@@ -12094,7 +12094,9 @@ Perl_ptr_table_fetch(pTHX_ PTR_TBL_t *const tbl, const void *const sv)
return tblent ? tblent->newval : NULL;
}
-/* add a new entry to a pointer-mapping table */
+/* add a new entry to a pointer-mapping table 'tbl'. In hash terms, 'oldsv' is
+ * the key; 'newsv' is the value. The names "old" and "new" are specific to
+ * the core's typical use of ptr_tables in thread cloning. */
void
Perl_ptr_table_store(pTHX_ PTR_TBL_t *const tbl, const void *const oldsv, void *const newsv)