1. Re: Euphoria 3.1.1

Jason Gade wrote:
> 
> Kenneth Rhodes wrote:
> > 
> > Jason Gade wrote:
> > 
> > > Broken how? I'll admit that I haven't run much under Linux yet but it
> > > seems
> > > to work okay.
> > 
> > Big time memory leak with division operator discussed here:
> > <a
> > href="http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=6&fromYear=1&toMonth=7&toYear=C&postedBy=&keywords=memory+leak">http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=6&fromYear=1&toMonth=7&toYear=C&postedBy=&keywords=memory+leak</a>
> > 
> > My computer choked running Juergen's standard deviation test suite: 
> > <a
> > href="http://www.openeuphoria.org/EUforum/m15400.html">http://www.openeuphoria.org/EUforum/m15400.html</a>
> > 
> > Matt has fixed the bug, just waiting for 3.1.1...
> 
> Can you make a test function pinpointing the bug so it can either be added to
> sanity.ex or to whatever file will be used for regression testing?

It was "just" a memory leak, so it's somewhat difficult to do that. It really
takes an external tool to detect.  As Rob said, it was mainly a result of
not grokking his code fully enough.  There was a special macro for freeing
doubles that I didn't take into account.

Basically, for linux and FreeBSD, I took out the custom code that Rob was
using for doing allocations, and let the operating system handle it.  BSD
and linux can be fussier sometimes about reading memory outside of what 
you've allocated, which was sometimes necessary inside of Rob's memory
allocation code.  Some preliminary tests on windows show that just using
the OS is slightly faster in some cases.

Matt

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu