diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-05-21 09:18:00 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-05-21 09:18:00 +0000 |
commit | e99d581a4aaa3c92d0b0dda6799157fe7a569f31 (patch) | |
tree | 9d4280f426101a8027cbee9439636d0798e557f2 /pod | |
parent | 99978bb4f628eeae8af4cb3f5bf7d42e615e2d36 (diff) | |
download | perl-e99d581a4aaa3c92d0b0dda6799157fe7a569f31.tar.gz |
Eliminate POSIX::int_macro_int, and all the complex AUTOLOAD fandango
that creates closures round it. Instead, wrap WEXITSTATUS, WIFEXITED,
WIFSIGNALED, WIFSTOPPED, WSTOPSIG and WTERMSIG directly with XS.
The shared library is slightly larger, but dynamic memory usage savings
beat this, even within one thread of one process. Simpler code too.
p4raw-id: //depot/perl@33896
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perltodo.pod | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod index 6fe7a14c8a..53158e7848 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -551,18 +551,6 @@ These tasks would need C knowledge, and roughly the level of knowledge of the perl API that comes from writing modules that use XS to interface to C. -=head2 investigate removing int_macro_int from POSIX.xs - -As a hang over from the original C<constant> implementation, F<POSIX.xs> -contains a function C<int_macro_int> which in conjunction with C<AUTOLOAD> is -used to wrap the C functions C<WEXITSTATUS>, C<WIFEXITED>, C<WIFSIGNALED>, -C<WIFSTOPPED>, C<WSTOPSIG> and C<WTERMSIG>. It's probably worth replacing -this complexity with 5 simple direct wrappings of those 5 functions. - -However, it would be interesting if someone could measure the memory usage -before and after, both for the case of C<use POSIX();> and the case of -actually calling the Perl space functions. - =head2 safely supporting POSIX SA_SIGINFO Some years ago Jarkko supplied patches to provide support for the POSIX |