Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perlmod.pod/CLONESKIP error #7935

Closed
p5pRT opened this issue May 31, 2005 · 6 comments
Closed

perlmod.pod/CLONESKIP error #7935

p5pRT opened this issue May 31, 2005 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented May 31, 2005

Migrated from rt.perl.org#36047 (status was 'resolved')

Searchable as RT36047$

@p5pRT
Copy link
Author

p5pRT commented May 31, 2005

From @nwc10

Created by @nwc10

perlmod.pod says

  Perl after 5.7.2 has support for the C<CLONE>
  and C<CLONE_SKIP> special subroutines.

This is inaccurate, surely?
5.7.2 may well have had CLONE, but CLONESKIP is new with 5.8.7

Nicholas Clark

Perl Info

Flags:
    category=docs
    severity=high

Site configuration information for perl v5.8.7:

Configured by nick at Mon May 30 23:03:04 BST 2005.

Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
  Platform:
    osname=freebsd, osvers=5.3-release-p2, archname=i386-freebsd
    uname='freebsd saigo.etla.org 5.3-release-p2 freebsd 5.3-release-p2 #1: wed dec 15 21:05:13 gmt 2004 root@saigo.etla.org:usrobjusrsrcsyssaigo i386 '
    config_args='-des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include',
    optimize='-O',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.4.2 [FreeBSD] 20040728', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lm -lcrypt -lutil -lc
    perllibs=-lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'

Locally applied patches:
    


@INC for perl v5.8.7:
    lib
    /usr/local/lib/perl5/5.8.7/i386-freebsd
    /usr/local/lib/perl5/5.8.7
    /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.8.7
    /usr/local/lib/perl5/site_perl/5.8.6
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl
    .


Environment for perl v5.8.7:
    HOME=/home/nick
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/nick/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/nick/bin:/usr/local/sbin:/sbin:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Jun 2, 2005

From offer.kaye@gmail.com

On 31 May 2005 12​:40​:39 -0000, via RT Nicholas Clark wrote​:

This is inaccurate, surely?
5.7.2 may well have had CLONE, but CLONESKIP is new with 5.8.7

Nicholas Clark

Patch attached.

--
Offer Kaye

@p5pRT
Copy link
Author

p5pRT commented Jun 2, 2005

From offer.kaye@gmail.com

perlmod.pod.patch
--- perlmod.pod.orig	2005-06-02 08:58:50.000000000 +0300
+++ perlmod.pod	2005-06-02 09:00:46.000000000 +0300
@@ -539,7 +539,7 @@
 module or by doing fork() on win32 (fake fork() support). When a
 thread is cloned all Perl data is cloned, however non-Perl data cannot
 be cloned automatically.  Perl after 5.7.2 has support for the C<CLONE>
-and C<CLONE_SKIP> special subroutines.  In C<CLONE> you can do whatever
+special subroutine.  In C<CLONE> you can do whatever
 you need to do,
 like for example handle the cloning of non-Perl data, if necessary.
 C<CLONE> will be called once as a class method for every package that has it
@@ -552,6 +552,7 @@
 If you want to CLONE all objects you will need to keep track of them per
 package. This is simply done using a hash and Scalar::Util::weaken().
 
+Perl after 5.8.7 has support for the C<CLONE_SKIP> special subroutine.
 Like C<CLONE>, C<CLONE_SKIP> is called once per package; however, it is
 called just before cloning starts, and in the context of the parent
 thread. If it returns a true value, then no objects of that class will

@p5pRT
Copy link
Author

p5pRT commented Jun 2, 2005

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jun 13, 2005

From @rgs

Offer Kaye wrote​:

On 31 May 2005 12​:40​:39 -0000, via RT Nicholas Clark wrote​:

This is inaccurate, surely?
5.7.2 may well have had CLONE, but CLONESKIP is new with 5.8.7

Nicholas Clark

Patch attached.

Thanks, applied as #24822.

@p5pRT p5pRT closed this as completed Jun 13, 2005
@p5pRT
Copy link
Author

p5pRT commented Jun 13, 2005

@rgs - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant