X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlpragma.pod;h=51292a8a12c0382f07d80d04b0087a5b47705e33;hb=6e0733998eff7a098d2d21d5602f3eb2a7521e1f;hp=12e8124d0c1cb310b7bfd50901f582374c44960c;hpb=02e1e4511d075846a874d09871b45595426ab2df;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlpragma.pod b/pod/perlpragma.pod index 12e8124..51292a8 100644 --- a/pod/perlpragma.pod +++ b/pod/perlpragma.pod @@ -138,3 +138,10 @@ or complex structures, you should serialise them, for example with C. The deletion of a hash key from C<%^H> is recorded, and as ever can be distinguished from the existence of a key with value C with C. + +B attempt to store references to data structures as integers which +are retrieved via C and converted back, as this will not be threadsafe. +Accesses would be to the structure without locking (which is not safe for +Perl's scalars), and either the structure has to leak, or it has to be +freed when its creating thread terminates, which may be before the optree +referencing it is deleted, if other threads outlive it.