This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
23 years agoIntegrate mainline changes into win32 branch. Now would be a good time
Gurusamy Sarathy [Fri, 14 Nov 1997 22:04:58 +0000 (22:04 +0000)]
Integrate mainline changes into win32 branch.  Now would be a good time
to reverse integrate the win32 branch into mainline.

p4raw-id: //depot/win32/perl@253

23 years agoTwo more delays added to test suite to help *-solaris-thread.
Malcolm Beattie [Fri, 14 Nov 1997 15:07:19 +0000 (15:07 +0000)]
Two more delays added to test suite to help *-solaris-thread.

p4raw-id: //depot/perl@252

23 years agoRemove stale code from Thread.xs.
Malcolm Beattie [Fri, 14 Nov 1997 15:05:57 +0000 (15:05 +0000)]
Remove stale code from Thread.xs.

p4raw-id: //depot/perl@251

23 years agoAdd delay to signal handling in t/op/magic.t. (Solaris with pthreads
Malcolm Beattie [Fri, 14 Nov 1997 10:12:40 +0000 (10:12 +0000)]
Add delay to signal handling in t/op/magic.t. (Solaris with pthreads
doesn't run handlers for self-sent signals until kill has returned.)

p4raw-id: //depot/perl@250

23 years agoFix various details in win32 makefiles and Config.pm setup.
Gurusamy Sarathy [Fri, 14 Nov 1997 05:14:44 +0000 (05:14 +0000)]
Fix various details in win32 makefiles and Config.pm setup.
 - ldflags is set for both compilers now
 - extensions list is now correct
 - delete perl95.exe on distclean
 - cf_time now gets updated (once)
 - ccdlflags is set for Borland
 - fix startperl so dprofpp works

p4raw-id: //depot/win32/perl@249

23 years agoRewrite thread return code to distinguish between ordinary return
Malcolm Beattie [Thu, 13 Nov 1997 18:01:27 +0000 (18:01 +0000)]
Rewrite thread return code to distinguish between ordinary return
and die() and make join propagate the die. Add tiny method eval
which just does "return eval { shift->join; }". Add Thread::Specific
class for access to thread specific user data along with specific.t.
Rename Class to classname throughout Thread.xs for consistency.
Fix pp_specific to pp_threadsv in global.sym. Add support to
pp_entersub in pp_hot.c to lock stash for static locked methods.

p4raw-id: //depot/perl@248

23 years agoChange CONTEXT to PERL_CONTEXT throughout source (since the #define
Malcolm Beattie [Thu, 13 Nov 1997 14:13:30 +0000 (14:13 +0000)]
Change CONTEXT to PERL_CONTEXT throughout source (since the #define
to avoid the Digital UNIX clash no longer works). Changed the #ifdef
in pp_sys.c for whether getnet* function get protoyped (since the
default had a broken prototype for getnetbyaddr).

p4raw-id: //depot/perl@247

23 years agoMore cleanups of win32/win32*.[ch] files. win32/win32iop.h now
Gurusamy Sarathy [Wed, 12 Nov 1997 22:26:39 +0000 (22:26 +0000)]
More cleanups of win32/win32*.[ch] files.  win32/win32iop.h now
contains the all the declarations and macros for the win32io layer.
New std-ish functions are exported now.  All win32-specific exported
functions begin with "win32_" consistently.  win32 version of
init_os_extras() is now exported, so embedders can get the in-core
xsubs.

p4raw-id: //depot/win32/perl@244

23 years agoReally delete deleted files.
Gurusamy Sarathy [Wed, 12 Nov 1997 07:41:52 +0000 (07:41 +0000)]
Really delete deleted files.

p4raw-id: //depot/win32/perl@243

23 years agoEgregious IOsubsystem code excised. Phew, what a relief! Two
Gurusamy Sarathy [Wed, 12 Nov 1997 07:40:54 +0000 (07:40 +0000)]
Egregious IOsubsystem code excised.  Phew, what a relief!  Two
files (win32/win32io.[ch]) completely removed, as are all traces
of them in makefiles and MANIFEST.  RunPerl() retains the void* arg
for later. Various myfoo() things regularized to my_foo().  CPP not
required anymore to create a perl binary :)

p4raw-id: //depot/win32/perl@242

23 years agoFix various win32 code blemishes:
Gurusamy Sarathy [Wed, 12 Nov 1997 05:31:28 +0000 (05:31 +0000)]
Fix various win32 code blemishes:
 - s/stolen/win32/g
 - s/(CROAK|WARN)/lc($1)/eg
 - remove deadcode from most places

p4raw-id: //depot/win32/perl@241

23 years agoCarry over changes in ansiperl branch. Win32 branch is now
Gurusamy Sarathy [Wed, 12 Nov 1997 04:36:29 +0000 (04:36 +0000)]
Carry over changes in ansiperl branch.  Win32 branch is now
the leading edge.

p4raw-id: //depot/win32/perl@240

23 years agoAdd missing win32_closesocket() and export it (extension writers' complaint).
Gurusamy Sarathy [Wed, 12 Nov 1997 03:39:57 +0000 (03:39 +0000)]
Add missing win32_closesocket() and export it (extension writers' complaint).

p4raw-id: //depot/win32/perl@239

23 years agoClean up win32/win32sck.c (runtime load of Winsock now gone, it can be
Gurusamy Sarathy [Wed, 12 Nov 1997 03:25:17 +0000 (03:25 +0000)]
Clean up win32/win32sck.c (runtime load of Winsock now gone, it can be
done cleaner, if really needed (perhaps only for efficiency reasons?)).
Redundant EXTERN_C definitions and related warnings fixed.

p4raw-id: //depot/win32/perl@238

23 years agoMinor tweaks to add a thread_intern struct that should ultimately
Gurusamy Sarathy [Wed, 12 Nov 1997 01:22:26 +0000 (01:22 +0000)]
Minor tweaks to add a thread_intern struct that should ultimately
contain all the win32-specific statics.
Win32 branch now passes all tests with or w/o USE_THREADS.

p4raw-id: //depot/win32/perl@235

23 years agoInitial (untested) integration of mainline changes.
Gurusamy Sarathy [Tue, 11 Nov 1997 23:08:54 +0000 (23:08 +0000)]
Initial (untested) integration of mainline changes.

p4raw-id: //depot/win32/perl@234

23 years agoTypo in thread.h: ADD_THREAD_INTERN should be HAVE_THREAD_INTERN
Malcolm Beattie [Tue, 11 Nov 1997 18:07:30 +0000 (18:07 +0000)]
Typo in thread.h: ADD_THREAD_INTERN should be HAVE_THREAD_INTERN

p4raw-id: //depot/perl@233

23 years agot/TEST (reverted to @229 version) should have been included in the
Malcolm Beattie [Tue, 11 Nov 1997 17:49:12 +0000 (17:49 +0000)]
t/TEST (reverted to @229 version) should have been included in the
previous change (231) but my way of recovering it didn't work
properly. The change 231 comments about successful tests applies
to this t/TEST (i.e. as of this change).

p4raw-link: @229 on //depot/perl: 2faa37ccf8e46b865687f0ab4992b29a75eb79ea

p4raw-id: //depot/perl@232

23 years agoFix up ansiperl integration. Back to passing all expected tests
Malcolm Beattie [Tue, 11 Nov 1997 17:46:59 +0000 (17:46 +0000)]
Fix up ansiperl integration. Back to passing all expected tests
with usethreads. Untested with non-threaded perl.

p4raw-id: //depot/perl@231

23 years agoInitial integration of ansi branch into mainline (untested).
Malcolm Beattie [Tue, 11 Nov 1997 16:36:22 +0000 (16:36 +0000)]
Initial integration of ansi branch into mainline (untested).

p4raw-id: //depot/perl@230

23 years agoChange name of OP_SPECIFIC to OP_THREADSV. Fixed perl_get_sv when
Malcolm Beattie [Tue, 11 Nov 1997 15:20:43 +0000 (15:20 +0000)]
Change name of OP_SPECIFIC to OP_THREADSV. Fixed perl_get_sv when
getting per-thread magicals. Fixed thr->errsv initialisation.

p4raw-id: //depot/perl@229

23 years agoFix up $@ (ERRSV now refers to GvSV(errgv) for non-threaded perl and
Malcolm Beattie [Tue, 11 Nov 1997 12:48:26 +0000 (12:48 +0000)]
Fix up $@ (ERRSV now refers to GvSV(errgv) for non-threaded perl and
thr->errsv for threaded perl). Fix pp_tie and pp_dbmopen to use
GvCV(gv) instead of gv so AUTOLOAD stuff works. All tests now pass
again for non-threaded perl. Enhanced perl_get_sv to return
per-thread magicals where necessary for threaded perl.

p4raw-id: //depot/perl@228

23 years agoSlightly more refined lock() keyword recognition (using %INC).
Gurusamy Sarathy [Tue, 11 Nov 1997 02:11:23 +0000 (02:11 +0000)]
Slightly more refined lock() keyword recognition (using %INC).

p4raw-id: //depot/win32/perl@226

23 years ago"weak" lock keyword (hardcoded initial implementation) now works.
Gurusamy Sarathy [Tue, 11 Nov 1997 00:26:09 +0000 (00:26 +0000)]
"weak" lock keyword (hardcoded initial implementation) now works.
if not defined(&Thread::join) and defined(&__PACKAGE__::lock), 'lock'
is recognized as a sub, a regular keyword otherwise.  Could be
generalized by storing a flag for every op in OP struct, and turning
the flag off when Thread.xs loads.

p4raw-id: //depot/win32/perl@225

23 years agoMerge a patch in preparation for "weak keywords":
Gurusamy Sarathy [Wed, 8 Oct 1997 02:18:23 +0000 (22:18 -0400)]
Merge a patch in preparation for "weak keywords":
    Message-Id: <199710080618.CAA23899@aatma.engin.umich.edu>
    Subject: [PATCH] global overrides for keywords

p4raw-id: //depot/win32/perl@224

23 years agoRemove runlevel. It was used to count how many runops() calls
Gurusamy Sarathy [Mon, 10 Nov 1997 22:41:31 +0000 (22:41 +0000)]
Remove runlevel.  It was used to count how many runops() calls
we were in the process of executing, and longjmp() to the topmost
one (if not already there).  We use a null top_env->je_prev
to distinguish that now.

p4raw-id: //depot/win32/perl@223

23 years agoWin32 branch now contains all non-ansification changes in ansiperl branch.
Gurusamy Sarathy [Mon, 10 Nov 1997 04:47:48 +0000 (04:47 +0000)]
Win32 branch now contains all non-ansification changes in ansiperl branch.
USE_THREADS case builds and passes all tests using both compilers.
Additional tweaks:
 - fixup win32/makedef.pl to skip more symbols for non-thread build.
 - sync win32/Makefile with win32/makefile.mk
>>>Non-thread build fails a lot of tests.<<<

p4raw-id: //depot/win32/perl@222

23 years agoInitial (untested) merge of all non-ansi changes on ansiperl branch
Gurusamy Sarathy [Mon, 10 Nov 1997 00:57:53 +0000 (00:57 +0000)]
Initial (untested) merge of all non-ansi changes on ansiperl branch
into win32 branch.

p4raw-id: //depot/win32/perl@221

23 years agoIntegrate latest mainline into win32 branch.
Gurusamy Sarathy [Sun, 9 Nov 1997 22:44:41 +0000 (22:44 +0000)]
Integrate latest mainline into win32 branch.

p4raw-id: //depot/win32/perl@220

23 years agoConditionalize english.t,
Nick Ing-Simmons [Sun, 9 Nov 1997 21:46:06 +0000 (21:46 +0000)]
Conditionalize english.t,
Enhance times() for NT,
(Failed) attempt to implement alarm(),
Fixed config.h dependancy in makefile.mk

p4raw-id: //depot/ansiperl@219

23 years agoDick Hardt's patch for build on Alpha
Nick Ing-Simmons [Sun, 9 Nov 1997 15:38:00 +0000 (15:38 +0000)]
Dick Hardt's patch for build on Alpha

p4raw-id: //depot/ansiperl@218

23 years agoMakeMaker not in vofig noise fix for dmake
Nick Ing-Simmons [Sun, 9 Nov 1997 03:31:20 +0000 (03:31 +0000)]
MakeMaker not in vofig noise fix for dmake

p4raw-id: //depot/ansiperl@217

23 years agoFix 'anydbm.t' - if the gv is passed 1st call to inherited
Nick Ing-Simmons [Sun, 9 Nov 1997 03:15:06 +0000 (03:15 +0000)]
Fix 'anydbm.t' - if the gv is passed 1st call to inherited
TIEHASH works, but 2nd call (after db is closed, attempt
to reopen) tries to AUTOLOAD TIEHASH rather than using
cached value.

p4raw-id: //depot/ansiperl@216

23 years agoCleanup MakeMaker 'not in config' noise
Nick Ing-Simmons [Sat, 8 Nov 1997 16:41:24 +0000 (16:41 +0000)]
Cleanup MakeMaker 'not in config' noise

p4raw-id: //depot/ansiperl@215

23 years agoRemove 'configure' leaving configure.gnu and Configure
Nick Ing-Simmons [Sat, 8 Nov 1997 15:07:24 +0000 (15:07 +0000)]
Remove 'configure' leaving configure.gnu and Configure
Win32 ignores case and keeps trying to update
repository copy of 'configure' or 'Configure' with
the other.

p4raw-id: //depot/ansiperl@214

23 years agoGet threads working again on Win32
Nick Ing-Simmons [Sat, 8 Nov 1997 15:03:39 +0000 (15:03 +0000)]
Get threads working again on Win32
Root cause of fail was init_thread_intern() in
new_struct_thread() (which is called in parent thread)
clobbering dTHR of parent thread.
It is doubtfull if setting 'self' in new_struct_thread()
is 'right' but left in for now.

p4raw-id: //depot/ansiperl@213

23 years agoAdd :base_thread to :default in Opcode.pm
Nick Ing-Simmons [Sat, 8 Nov 1997 00:34:03 +0000 (00:34 +0000)]
Add :base_thread to :default in Opcode.pm
This allows lib/safe.t to pass when threaded.
It is unclear if 'lock' should be safe as it allows
denial of service attack, but could not figure out
how to add just 'specific' (sic) to :default
without triggering 'already tagged' warning noise.

p4raw-id: //depot/ansiperl@212

23 years agoMerge changes as of 18:00 CST
Nick Ing-Simmons [Fri, 7 Nov 1997 23:59:31 +0000 (23:59 +0000)]
Merge changes as of 18:00 CST

p4raw-id: //depot/ansiperl@211

23 years agoReverse integrate Malcolm's chanes into local
Nick Ing-Simmons [Fri, 7 Nov 1997 23:52:35 +0000 (23:52 +0000)]
Reverse integrate Malcolm's chanes into local
repository, then import result back into my view
of Malcolm's repository.
Builds and passes (most) tests with GNU C++/Solaris
and Borland C++, Win32.

p4raw-id: //depot/ansiperl@210

23 years agoChange pp_tie and pp_dbmopen to use perl_call_sv instead of a
Malcolm Beattie [Fri, 7 Nov 1997 18:12:36 +0000 (18:12 +0000)]
Change pp_tie and pp_dbmopen to use perl_call_sv instead of a
DIY pp_entersub (in preparation for AUTOLOAD change). dbmopen
not tested. ofslen now maps to thr->Tofslen in thread.h. Added
missing #ifdef USE_THREADS around some DEBU_L statements in die().
Building without USE_THREADS fails quite a lot of tests. It looks
as though the move to per-thread magicals must be missing some
#ifdef USE_THREADS.

p4raw-id: //depot/perl@209

23 years agoRaw integrate of latest perl
Nick Ing-Simmons [Fri, 7 Nov 1997 01:37:28 +0000 (01:37 +0000)]
Raw integrate of latest perl

p4raw-id: //depot/ansiperl@208

23 years agoUpdate README.threads and Todo.5.005.
Malcolm Beattie [Thu, 6 Nov 1997 14:58:00 +0000 (14:58 +0000)]
Update README.threads and Todo.5.005.

p4raw-id: //depot/perl@207

23 years agoRemove #ifdef DEPRECATED stuff: newXSUB, pp_entersubr, FREE_TMPS().
Malcolm Beattie [Thu, 6 Nov 1997 14:37:37 +0000 (14:37 +0000)]
Remove #ifdef DEPRECATED stuff: newXSUB, pp_entersubr, FREE_TMPS().

p4raw-id: //depot/perl@206

23 years agoPer-thread magicals now stored in their own thr->magicals and keyed
Malcolm Beattie [Thu, 6 Nov 1997 14:31:38 +0000 (14:31 +0000)]
Per-thread magicals now stored in their own thr->magicals and keyed
more directly. cvcache and oursv become ordinary struct thread
fields instead of #defined thr->Tfoo ones. SvREFCNT_inc now checks
for 0 again. Main thread initialisation done by new function
init_main_thread instead of (now fixed) new_struct_thread.

p4raw-id: //depot/perl@205

23 years agoPer-thread magicals mostly working (and localisable). Now getting
Malcolm Beattie [Wed, 5 Nov 1997 17:18:18 +0000 (17:18 +0000)]
Per-thread magicals mostly working (and localisable). Now getting
intermittent occasional "Use of uninitialized value" warnings
which may be due to some op flag black magic I've broken.

p4raw-id: //depot/perl@204

23 years agoBuilds C++ Borland, MSVC++ (Win32) and GCC++ (Solaris)
Nick Ing-Simmons [Wed, 5 Nov 1997 01:04:10 +0000 (01:04 +0000)]
Builds C++ Borland, MSVC++ (Win32) and GCC++ (Solaris)

p4raw-id: //depot/ansiperl@203

23 years agoCompile(d) at least once with threads on win32
Nick Ing-Simmons [Wed, 5 Nov 1997 00:50:27 +0000 (00:50 +0000)]
Compile(d) at least once with threads on win32
but did not work

p4raw-id: //depot/ansiperl@202

23 years agoTrivial integrate
Nick Ing-Simmons [Wed, 5 Nov 1997 00:32:13 +0000 (00:32 +0000)]
Trivial integrate

p4raw-id: //depot/ansiperl@201

23 years agoUp patchlevel to 5.004_54 (I missed _53 for the last release).
Malcolm Beattie [Tue, 4 Nov 1997 12:06:09 +0000 (12:06 +0000)]
Up patchlevel to 5.004_54 (I missed _53 for the last release).

p4raw-id: //depot/perl@200

23 years agoIntegrate mainline @ 18:15 CST 31 Oct 1997
Nick Ing-Simmons [Sat, 1 Nov 1997 00:18:52 +0000 (00:18 +0000)]
Integrate mainline @ 18:15 CST 31 Oct 1997

p4raw-id: //depot/ansiperl@199

23 years agowin32thread.* not in MANIFEST which has muddled moving
Nick Ing-Simmons [Sat, 1 Nov 1997 00:08:33 +0000 (00:08 +0000)]
win32thread.* not in MANIFEST which has muddled moving
back and forth between depots.

p4raw-id: //depot/ansiperl@198

23 years agoTest changes
Nick Ing-Simmons [Sat, 1 Nov 1997 00:02:49 +0000 (00:02 +0000)]
Test changes

p4raw-id: //depot/ansiperl@197

23 years agoFurther ANSI changes now builds and passes (most) tests
Nick Ing-Simmons [Fri, 31 Oct 1997 23:54:01 +0000 (23:54 +0000)]
Further ANSI changes now builds and passes (most) tests
with gcc -x c++.

p4raw-id: //depot/ansiperl@196

23 years agoHalf way through moving per-thread magicals into per-thread fields
Malcolm Beattie [Fri, 31 Oct 1997 18:05:31 +0000 (18:05 +0000)]
Half way through moving per-thread magicals into per-thread fields
and the associated new OP_SPECIFIC and find_thread_magical stuff.
perl will compile but plenty of the magicals are still broken.

p4raw-id: //depot/perl@195

23 years agoConvert miniperl sources to ANSI C. Several passes of
Nick Ing-Simmons [Fri, 31 Oct 1997 01:43:49 +0000 (01:43 +0000)]
Convert miniperl sources to ANSI C. Several passes of
GNU C's 'protoize' plus a few hand edits.
Will compile miniperl with gcc -x c++ (i.e. treat .c a C++ files)
Does not link seems gcc's C++ does not define a symbol for
   const char foo[] = "....";
i.e. with empty [].

p4raw-id: //depot/ansiperl@194

23 years agoMake the ansi branch
Nick Ing-Simmons [Thu, 30 Oct 1997 03:00:01 +0000 (03:00 +0000)]
Make the ansi branch

p4raw-id: //depot/ansiperl@193

23 years agoRemove global macro "self". Change thr->Tself to thr->self.
Malcolm Beattie [Wed, 29 Oct 1997 14:39:54 +0000 (14:39 +0000)]
Remove global macro "self". Change thr->Tself to thr->self.

p4raw-id: //depot/perl@190

23 years agoAdd to Todo: compiler with fake SvCUR in comppad_name entries.
Malcolm Beattie [Wed, 29 Oct 1997 12:49:01 +0000 (12:49 +0000)]
Add to Todo: compiler with fake SvCUR in comppad_name entries.

p4raw-id: //depot/perl@189

23 years agoChange peep() to optimise away unneeded rv2av in lval->[] and lval->{}
Malcolm Beattie [Wed, 29 Oct 1997 12:45:02 +0000 (12:45 +0000)]
Change peep() to optimise away unneeded rv2av in lval->[] and lval->{}

p4raw-id: //depot/perl@187

23 years agoMove compiler OP class information into opcode.pl.
Malcolm Beattie [Wed, 29 Oct 1997 12:43:36 +0000 (12:43 +0000)]
Move compiler OP class information into opcode.pl.

p4raw-id: //depot/perl@186

23 years agoRemove xcv_condp CV field which is no longer used.
Malcolm Beattie [Fri, 24 Oct 1997 17:14:00 +0000 (17:14 +0000)]
Remove xcv_condp CV field which is no longer used.

p4raw-id: //depot/perl@174

23 years agoPatches for VMS [Dan Sugalski]
Malcolm Beattie [Fri, 24 Oct 1997 14:36:09 +0000 (14:36 +0000)]
Patches for VMS [Dan Sugalski]

p4raw-id: //depot/perl@173

23 years agoImprove internal threading API. Introduce win32/win32thread.[ch]
Malcolm Beattie [Fri, 24 Oct 1997 13:50:59 +0000 (13:50 +0000)]
Improve internal threading API. Introduce win32/win32thread.[ch]
to use new API and patch win32 makefile stuff a little.

p4raw-id: //depot/perl@172

23 years agoFix pp_hot.c:get_db_sub core dump when perl debugger used.
Malcolm Beattie [Thu, 23 Oct 1997 14:00:27 +0000 (14:00 +0000)]
Fix pp_hot.c:get_db_sub core dump when perl debugger used.

p4raw-id: //depot/perl@171

23 years agoFix refcounts for lock/magic_mutexfree. Make OP_LOCK auto-ref
Malcolm Beattie [Thu, 23 Oct 1997 09:22:40 +0000 (09:22 +0000)]
Fix refcounts for lock/magic_mutexfree. Make OP_LOCK auto-ref
its argument using ck_rfun as OP_DEFINED. Make pp_lock return
a ref to its argument for AV, HV, CV.

p4raw-id: //depot/perl@170

23 years agoMake lib/Bundle/CPAN.pm a text file
Nick Ing-Simmons [Sat, 18 Oct 1997 02:52:44 +0000 (02:52 +0000)]
Make lib/Bundle/CPAN.pm a text file

p4raw-id: //depot/perl@156

23 years agoMerge changes to Thread and add makefile fixups to accomodate Thread
Gurusamy Sarathy [Thu, 16 Oct 1997 22:26:07 +0000 (22:26 +0000)]
Merge changes to Thread and add makefile fixups to accomodate Thread
build.  Once again, builds and runs all Thread tests using either
compiler.

p4raw-id: //depot/win32/perl@144

23 years agoA quick merge of latest mainline.
Gurusamy Sarathy [Thu, 16 Oct 1997 20:45:58 +0000 (20:45 +0000)]
A quick merge of latest mainline.

p4raw-id: //depot/win32/perl@143

23 years agoAdd newly moved perl/ext/Thread/... files to MANIFEST.
Malcolm Beattie [Thu, 16 Oct 1997 16:52:55 +0000 (16:52 +0000)]
Add newly moved perl/ext/Thread/... files to MANIFEST.

p4raw-id: //depot/perl@142

23 years agoMove perlext/Thread into perl/ext/Thread.
Malcolm Beattie [Thu, 16 Oct 1997 16:42:13 +0000 (16:42 +0000)]
Move perlext/Thread into perl/ext/Thread.

p4raw-id: //depot/perl@141

23 years agoCorrect threads_mutex locking in main thread destruction.
Malcolm Beattie [Thu, 16 Oct 1997 16:26:53 +0000 (16:26 +0000)]
Correct threads_mutex locking in main thread destruction.
Add per-interp thrsv to hold SV struct thread for main thread.
Move Thread.xs MUTEX_DESTROY from end of threadstart to remove_thread.
Add Thread/list.t test of Thread->list method.
Let Thread::Semaphore methods up and down take an extra argument.

p4raw-id: //depot/perl@140

23 years agoCorrect threads_mutex locking in main thread destruction.
Malcolm Beattie [Thu, 16 Oct 1997 16:26:53 +0000 (16:26 +0000)]
Correct threads_mutex locking in main thread destruction.
Add per-interp thrsv to hold SV struct thread for main thread.
Move Thread.xs MUTEX_DESTROY from end of threadstart to remove_thread.
Add Thread/list.t test of Thread->list method.
Let Thread::Semaphore methods up and down take an extra argument.

p4raw-id: //depot/perlext/Thread@140

23 years agoFix up merge with 5.004_04.
Malcolm Beattie [Thu, 16 Oct 1997 14:01:11 +0000 (14:01 +0000)]
Fix up merge with 5.004_04.

p4raw-id: //depot/perl@139

23 years agoMerge maint-5.004 branch (5.004_04) with mainline.
Malcolm Beattie [Thu, 16 Oct 1997 11:09:25 +0000 (11:09 +0000)]
Merge maint-5.004 branch (5.004_04) with mainline.

p4raw-id: //depot/perl@137

23 years agoWin32 changes over 5.004_52:
Gurusamy Sarathy [Wed, 15 Oct 1997 21:46:05 +0000 (21:46 +0000)]
Win32 changes over 5.004_52:
 - rearranged MUTEX_LOCK()s in perl_destroy so that we don't call it
   on an already locked mutex.
 - other minor tweaks.
Now builds and runs win32-version of Thread_52, passing all tests.

p4raw-id: //depot/win32/perl@135

23 years agofixup makefile.mk conflict.
Gurusamy Sarathy [Wed, 15 Oct 1997 18:19:31 +0000 (18:19 +0000)]
fixup makefile.mk conflict.

p4raw-id: //depot/win32/perl@134

23 years agoIntegrated latest changes from mainline into win32.
Gurusamy Sarathy [Wed, 15 Oct 1997 18:02:46 +0000 (18:02 +0000)]
Integrated latest changes from mainline into win32.

p4raw-id: //depot/win32/perl@133

23 years agoRemove out-of-date test Thread/cond.t.
Malcolm Beattie [Wed, 15 Oct 1997 17:02:38 +0000 (17:02 +0000)]
Remove out-of-date test Thread/cond.t.

p4raw-id: //depot/perlext/Thread@132

23 years agoFinish thread state machine: fixes global destruction of threads,
Malcolm Beattie [Wed, 15 Oct 1997 16:57:45 +0000 (16:57 +0000)]
Finish thread state machine: fixes global destruction of threads,
detaching, joining etc. Alter FAKE_THREADS-specific fields to use
new HAVE_THREAD_INTERN stuff. Updates docs. Various fixes to
Thread.xs.

p4raw-id: //depot/perl@131

23 years agoFinish thread state machine: fixes global destruction of threads,
Malcolm Beattie [Wed, 15 Oct 1997 16:57:45 +0000 (16:57 +0000)]
Finish thread state machine: fixes global destruction of threads,
detaching, joining etc. Alter FAKE_THREADS-specific fields to use
new HAVE_THREAD_INTERN stuff. Updates docs. Various fixes to
Thread.xs.

p4raw-id: //depot/perlext/Thread@131

23 years agoAdd HAVE_THREAD_INTERN for platform-dependent struct thread additions.
Malcolm Beattie [Wed, 15 Oct 1997 16:55:10 +0000 (16:55 +0000)]
Add HAVE_THREAD_INTERN for platform-dependent struct thread additions.
Fix ThrSETSTATE not to lock t->mutex itself.

p4raw-id: //depot/perl@130

23 years agoRemove stale code from pp_entersub which breaks sub ownership locks.
Malcolm Beattie [Wed, 15 Oct 1997 16:53:35 +0000 (16:53 +0000)]
Remove stale code from pp_entersub which breaks sub ownership locks.

p4raw-id: //depot/perl@129

23 years agoMaintenance 5.004_04 changes
Tim Bunce [Wed, 15 Oct 1997 15:55:26 +0000 (15:55 +0000)]
Maintenance 5.004_04 changes

p4raw-id: //depot/maint-5.004/perl@128

23 years agoAdded fakethr.h.
Malcolm Beattie [Wed, 15 Oct 1997 10:00:18 +0000 (10:00 +0000)]
Added fakethr.h.

p4raw-id: //depot/perl@127

23 years agopthread_condattr_init in thread.h for OLD_PTHREADS_API.
Malcolm Beattie [Wed, 15 Oct 1997 09:50:57 +0000 (09:50 +0000)]
pthread_condattr_init in thread.h for OLD_PTHREADS_API.

p4raw-id: //depot/perl@126

23 years agoStarted rewriting thread state machine.
Malcolm Beattie [Wed, 15 Oct 1997 09:09:24 +0000 (09:09 +0000)]
Started rewriting thread state machine.

p4raw-id: //depot/perlext/Thread@125

23 years agoStarted rewriting thread state machine.
Malcolm Beattie [Wed, 15 Oct 1997 09:09:24 +0000 (09:09 +0000)]
Started rewriting thread state machine.

p4raw-id: //depot/perl@125

23 years agoRemove spurious extra MUTEX_LOCK in pp_entersub(). Now builds and passes
Gurusamy Sarathy [Tue, 14 Oct 1997 00:23:15 +0000 (00:23 +0000)]
Remove spurious extra MUTEX_LOCK in pp_entersub().  Now builds and passes
tests in win32 version of latest perlext/Thread.

p4raw-id: //depot/win32/perl@124

23 years agoInitial merge of win32 threads patch.
Gurusamy Sarathy [Mon, 13 Oct 1997 23:18:38 +0000 (23:18 +0000)]
Initial merge of win32 threads patch.

p4raw-id: //depot/win32/perl@123

23 years agoIntegrated changes on mainline into the win32 branch. Had to set
Gurusamy Sarathy [Fri, 10 Oct 1997 20:58:40 +0000 (20:58 +0000)]
Integrated changes on mainline into the win32 branch.  Had to set
P4USER=mbeattie for the resolve step (due to the presence of newly
branched files that had not been submitted?)

p4raw-id: //depot/win32/perl@122

23 years agoTweak a few Thread tests.
Malcolm Beattie [Fri, 10 Oct 1997 17:23:41 +0000 (17:23 +0000)]
Tweak a few Thread tests.

p4raw-id: //depot/perlext/Thread@121

23 years agoRewrite thread destruction system using linked list of threads.
Malcolm Beattie [Fri, 10 Oct 1997 17:22:46 +0000 (17:22 +0000)]
Rewrite thread destruction system using linked list of threads.
Still not completely done. Add methods self, equal, flags, list
to Thread.xs. Add Thread_MAGIC_SIGNATURE check to typemap.

p4raw-id: //depot/perl@120

23 years agoRewrite thread destruction system using linked list of threads.
Malcolm Beattie [Fri, 10 Oct 1997 17:22:46 +0000 (17:22 +0000)]
Rewrite thread destruction system using linked list of threads.
Still not completely done. Add methods self, equal, flags, list
to Thread.xs. Add Thread_MAGIC_SIGNATURE check to typemap.

p4raw-id: //depot/perlext/Thread@120

23 years agoFix up locking/synchronisation for pp_entersub.
Malcolm Beattie [Fri, 10 Oct 1997 17:19:55 +0000 (17:19 +0000)]
Fix up locking/synchronisation for pp_entersub.

p4raw-id: //depot/perl@119

23 years agoPut back entries in MANIFEST for the four now-returned win32/* files
Malcolm Beattie [Fri, 10 Oct 1997 09:55:32 +0000 (09:55 +0000)]
Put back entries in MANIFEST for the four now-returned win32/* files

p4raw-id: //depot/perl@118

23 years agoTook out mystack_foo for good, fixed up interp.sym and win32/makedef.pl
Malcolm Beattie [Fri, 10 Oct 1997 08:12:23 +0000 (08:12 +0000)]
Took out mystack_foo for good, fixed up interp.sym and win32/makedef.pl

p4raw-id: //depot/perl@117

23 years agoAdd missing sig_pipe definition to Thread.xs.
Malcolm Beattie [Wed, 8 Oct 1997 15:41:08 +0000 (15:41 +0000)]
Add missing sig_pipe definition to Thread.xs.

p4raw-id: //depot/perlext/Thread@116

23 years agoFix up 5.004_03 merge: remove missing win32 files from MANIFEST,
Malcolm Beattie [Wed, 8 Oct 1997 15:40:46 +0000 (15:40 +0000)]
Fix up 5.004_03 merge: remove missing win32 files from MANIFEST,
add missing dTHR; to new function unwind_handler_stack() in mg.c
and bump patchlevel.h to 5.004_52.

p4raw-id: //depot/perl@115

23 years agoMerge maint-5.004 branch (5.004_03) with mainline.
Malcolm Beattie [Wed, 8 Oct 1997 10:19:27 +0000 (10:19 +0000)]
Merge maint-5.004 branch (5.004_03) with mainline.
MANIFEST is out of sync.

p4raw-id: //depot/perl@114

23 years agoMove init of global mutexes/cond vars earlier.
Malcolm Beattie [Sun, 5 Oct 1997 17:52:49 +0000 (17:52 +0000)]
Move init of global mutexes/cond vars earlier.

p4raw-id: //depot/perl@113