summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* [fix bug in print]Larry Wall1995-03-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | : In perl 5.001 the print function now only outputs one significant digit for the : the results of some mathematical functions. : : $ cat mine : #!/usr/bin/perl : print sqrt(2), "\n"; : print 4 * atan2(1,1), "\n"; : print log(2), "\n"; : $ ./mine : 1 : 3 : 0 Okay, I understand how this one happened. This is a case where a beneficial fix uncovered a bug elsewhere. I changed the constant folder to prefer integer results over double if the numbers are the same. In this case, they aren't, but it leaves the integer value there anyway because the storage is already allocated for it, and it *might* be used in an integer context. And since it's producing a constant, it sets READONLY. Unfortunately, sv_2pv() bogusly preferred the integer value to the double when READONLY was set. This never showed up if you just said print 1.4142135623731; because in that case, there was already a string value. Larry
* cleaner version of the official unofficial patchLarry Wall1995-03-151-0/+1
| | | | | | : There were some warnings (AIX, xlc compiler): Here's a cleaner version of the official unofficial patch, based on 5.001.
* Perl 5.001perl-5.001Larry Wall1995-03-121-72/+83
| | | | [See the Changes file for a list of changes]
* "unofficial" patches for some of the more spectacular [memory leaks]Larry Wall1995-01-111-1/+1
| | | | | | | | | | | | | | | | | | | To: Simon Parsons <S.Parsons@fulcrum.co.uk> : I am on a Sun sparc running Solaris 5.3 / 5.4 : : Are there any patches available for perl5.000, or a list of know bugs? : I am having problems with a script running out of memory, which may be : causes by memory leaks. The process size grows steadily up to approx : 8Meg (over a couple of minutes) an then grows to approx 22Meg (in 2 or : 3 seconds) before running out of memory. purify indicates memory : leaks, but I am not sure whether this is as a result of perl : abandoning memory as it exits. 5.001 will contain fixes for a number of memory leaks. Here are some unofficial patches for some of the more spectacular ones. The one for sv.c is the likeliest one to be affecting you, unless you're doing a lot of evals.
* duplicate DESTROYLarry Wall1995-01-111-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to fix the duplicate DESTROY bug, I need to remove [the modified] lines from sv_setsv. Basically, copying an object shouldn't produce another object without an explicit blessing. I'm not sure if this will break anything. If Ilya and anyone else so inclined would apply this patch and see if it breaks anything related to overloading (or anything else object-oriented), I'd be much obliged. By the way, here's a test script for the duplicate DESTROY. You'll note that it prints DESTROYED twice, once for , and once for . I don't think an object should be considered an object unless viewed through a reference. When accessed directly it should behave as a builtin type. #!./perl = new main; = ''; sub new { my ; local /tmp/ssh-vaEzm16429/agent.16429 = bless $a; local = ; # Bogusly makes an object. /tmp/ssh-vaEzm16429/agent.16429; } sub DESTROY { print "DESTROYED\n"; } Larry
* perl 5.000perl-5.000Larry Wall1994-10-171-497/+898
| | | | | | | | | | | [editor's note: this commit combines approximate 4 months of furious releases of Andy Dougherty and Larry Wall - see pod/perlhist.pod for details. Andy notes that; Alas neither my "Irwin AccuTrack" nor my DC 600A quarter-inch cartridge backup tapes from that era seem to be readable anymore. I guess 13 years exceeds the shelf life for that backup technology :-(. ]
* perl 5.0 alpha 9perl-5a9Larry Wall1994-05-041-32/+73
| | | | [editor's note: the sparc executables have not been included, and emacs backup files have been removed]
* perl 5.0 alpha 8Andy Dougherty1994-04-041-29/+26
| | | | | [the last one taken from the September '94 InfoMagic CD; a similar style of cleanup as the previous commits was performed]
* perl 5.0 alpha 6Larry Wall1994-03-181-204/+618
| | | | [editor's note: cleaned up from the September '94 InfoMagic CD, just like the last commit]
* perl 5.0 alpha 5Larry Wall1993-12-101-178/+308
| | | | | | [editor's note: the sparc executables have not been included, and emacs backup files and other cruft such as patch backup files have been removed. This was reconstructed from a tarball found on the September 1994 InfoMagic CD]
* perl 5.0 alpha 4Larry Wall1993-11-101-493/+903
| | | | | | | [editor's note: the sparc executables have not been included, and emacs backup files have been removed. This was reconstructed from a tarball found on the September 1994 InfoMagic CD; the date of this is approximate]
* perl 5.0 alpha 3Larry Wall1993-10-101-51/+49
| | | | | [editor's note: the sparc executables have not been included, and emacs backup files have been removed]
* perl 5.0 alpha 2perl-5a2Larry Wall1993-10-071-0/+2046
[editor's note: from history.perl.org. The sparc executables originally included in the distribution are not in this commit.]