This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
GvFILE() cannot be a pointer to the memory owned by the COP, because
authorNicholas Clark <nick@ccl4.org>
Tue, 2 May 2006 12:41:43 +0000 (12:41 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 2 May 2006 12:41:43 +0000 (12:41 +0000)
commitf4890806d306bfeee79f1864c882eb307b4f54fd
treecca03a58610968601b3ada5869d34e24939210d8
parent178eff928e12522422417310bee9331fccc184cf
GvFILE() cannot be a pointer to the memory owned by the COP, because
COPs created by use can be freed along this memory, but the GP
remains. Given that several GVs may refer to the same file, use a
shared string rather than an individual allocation per GP.

p4raw-id: //depot/perl@28060
bytecode.pl
ext/ByteLoader/bytecode.h
ext/ByteLoader/byterun.c
gv.c
gv.h
sv.c