[perl #128553] [SEGV] multi method cache causes Base64 regression

2018-03-09 Thread Jan-Olof Hendig via RT
On Wed, 27 Jul 2016 17:43:48 -0700, lloyd.fo...@gmail.com wrote: > By flag_map I mean ctx->callsite->arg_flags: > > (lldb) p ctx->arg_flags > (MVMCallsiteEntry *) $8 = 0x > (lldb) p ctx->callsite->arg_flags > (MVMCallsiteEntry *) $9 = 0x10a72533 "" > > On Mon, Jul 11, 2016

[perl #131888] No such method 'cache' for invocant of type 'NQPMu'

2017-08-20 Thread Sam M via RT
Here is a script that demonstrates this issue relatively consistently. https://gist.github.com/scmorrison/d7506b69e5778381c8374163435ae651 Sometimes it works fine, but mostly not. I have tried several variations of this and any that use the >>.map, hyper, or promises fail. Sam

[perl #131888] No such method 'cache' for invocant of type 'NQPMu'

2017-08-13 Thread Evan Miller via RT
> I think things would go faster with this one if it was golfed down. I will try to golf it when I have time. In the meantime, I have occasionally seen the same error in place of the memory errors described in #131889. If that one is resolved then this one may go away too.

[perl #131888] No such method 'cache' for invocant of type 'NQPMu'

2017-08-13 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
I think things would go faster with this one if it was golfed down. Given the previous warnings saying “Use of uninitialized value $key of type Any in string context.”, the issue is quite possibly in Uzu itself (or maybe even Mustache). The ticket is of course valid because the error should not co

[perl #131888] No such method 'cache' for invocant of type 'NQPMu'

2017-08-13 Thread Evan Miller via RT
None of the provided environmental variables reliably fixed the issue. MVM_SPESH_INLINE_DISABLE=1 seemed to provide slightly better results overall, but that may have been due to random chance, and the original error still sometimes appeared.

Re: [perl #131888] No such method 'cache' for invocant of type 'NQPMu'

2017-08-12 Thread Bart Wiegmans via RT
> > > I'm using the Rakudo nom and MoarVM master. A call to "await" on an array > of Promises is failing with the error: > > No such method 'cache' for invocant of type 'NQPMu' > in any at > /Users/emiller/Code/rakudo/i

Re: [perl #131888] No such method 'cache' for invocant of type 'NQPMu'

2017-08-12 Thread Bart Wiegmans
> > > I'm using the Rakudo nom and MoarVM master. A call to "await" on an array > of Promises is failing with the error: > > No such method 'cache' for invocant of type 'NQPMu' > in any at > /Users/emiller/Code/rakudo/i

[perl #131888] No such method 'cache' for invocant of type 'NQPMu'

2017-08-12 Thread via RT
ray of Promises is failing with the error: No such method 'cache' for invocant of type 'NQPMu' in any at /Users/emiller/Code/rakudo/install/share/perl6/runtime/CORE.d.setting.moarvm line 1 The full error can be seen here: https://github.com/scmorrison/uzu

[perl #129945] Str.match(/./, :nth()) shouldn't cache

2016-10-23 Thread via RT
nth doesn’t cache, but is fully lazy - :nth(N) gives the Nth match, or Nil if there isn’t an Nth match - :nth(*|Inf) gives the last match, or Nil if there aren’t any matches - :nth(anything that can do .iterator) gives a list of matches on the proviso that the numeric values of the iterator

Re: [perl #128553] multi method cache causes Base64 regression

2016-07-27 Thread Lloyd Fournier via RT
I've been getting segfaults in this area recently. The trace is a bit different but I guess it's related. It seems that flag_map in gc_mark is no longer allocated so I get segfault. (lldb) r There is a running process, kill it and restart?: [Y/n] y Process 75673 exited with status = 9 (0x0009)

Re: [perl #128553] multi method cache causes Base64 regression

2016-07-27 Thread Lloyd Fournier via RT
By flag_map I mean ctx->callsite->arg_flags: (lldb) p ctx->arg_flags (MVMCallsiteEntry *) $8 = 0x (lldb) p ctx->callsite->arg_flags (MVMCallsiteEntry *) $9 = 0x10a72533 "" On Mon, Jul 11, 2016 at 3:59 AM Lloyd Fournier wrote: > I've been getting segfaults in this area re

[perl #128553] multi method cache causes Base64 regression

2016-07-17 Thread Nick Logan via RT
On Sat Jul 09 07:13:48 2016, jn...@jnthn.net wrote: > On Tue Jul 05 17:51:46 2016, ug...@cpan.org wrote: > > Note that the final decode-base64 candidate shows the correct results > > when debugging statements are added > > > > This gist also shows a small change that makes it produce the correct >

Re: [perl #128553] multi method cache causes Base64 regression

2016-07-10 Thread Lloyd Fournier
By flag_map I mean ctx->callsite->arg_flags: (lldb) p ctx->arg_flags (MVMCallsiteEntry *) $8 = 0x (lldb) p ctx->callsite->arg_flags (MVMCallsiteEntry *) $9 = 0x10a72533 "" On Mon, Jul 11, 2016 at 3:59 AM Lloyd Fournier wrote: > I've been getting segfaults in this area re

Re: [perl #128553] multi method cache causes Base64 regression

2016-07-10 Thread Lloyd Fournier
I've been getting segfaults in this area recently. The trace is a bit different but I guess it's related. It seems that flag_map in gc_mark is no longer allocated so I get segfault. (lldb) r There is a running process, kill it and restart?: [Y/n] y Process 75673 exited with status = 9 (0x0009)

[perl #128553] multi method cache causes Base64 regression

2016-07-09 Thread jn...@jnthn.net via RT
On Tue Jul 05 17:51:46 2016, ug...@cpan.org wrote: > Note that the final decode-base64 candidate shows the correct results > when debugging statements are added > > This gist also shows a small change that makes it produce the correct > values but it still segfaults more often than not > https://g

[perl #128553] multi method cache causes Base64 regression

2016-07-09 Thread jn...@jnthn.net via RT
On Tue Jul 05 17:51:46 2016, ug...@cpan.org wrote: > Note that the final decode-base64 candidate shows the correct results > when debugging statements are added > > This gist also shows a small change that makes it produce the correct > values but it still segfaults more often than not > https://g

[perl #128553] multi method cache causes Base64 regression

2016-07-05 Thread Nick Logan via RT
Note that the final decode-base64 candidate shows the correct results when debugging statements are added This gist also shows a small change that makes it produce the correct values but it still segfaults more often than not https://gist.github.com/ugexe/baa168a641894a0731595c812724f76d

[perl #128553] multi method cache causes Base64 regression

2016-07-05 Thread via RT
org/ugexe/zef/jobs/142611302#L1178 Relevant code: https://github.com/ugexe/Perl6-Base64/blob/master/lib/Base64.pm6#L41 The first multi dispatch cache commit only caused failures sometimes. The commit afterwards (d4ac15c) to fix a different multi dispatch cache problem causes it to always fail,

[perl6/specs] 354bef: Clarify calling .cache more than once

2015-09-14 Thread GitHub
-lists.pod Log Message: --- Clarify calling .cache more than once

[perl6/specs] 829e71: We *can* call .cache multiple times

2015-09-14 Thread GitHub
: M S07-lists.pod Log Message: --- We *can* call .cache multiple times It will just return the same lazy list. The removed line seems to contradict that.

[perl #109734] [BUG] Strange MOP type check cache error message when doing in a regex in Rakudo

2012-02-03 Thread Carl Mäsak
e rest of the string in Perl 6? .split(//) ooh nom: say 'foobar'.split(//).perl nom acbec8: OUTPUT«No type check cache and no type_check method in meta-object␤ in method reify [...] How in the hell... jnthn: indeed. I get the same output locally * masak submits rakudobug OK, what is a

[perl #45961] [TODO] Cache the namespace in mmd_create_builtin_multi_meth_2()

2008-10-15 Thread Will Coleda via RT
On Tue Oct 02 10:24:02 2007, pcoch wrote: > In the file src/mmd.c there is the todo item within > mmd_create_builtin_multi_meth_2(): > > * TODO cache the namespace > > Do this. (please) This function (and the TODO) are no longer present after the recent MMD mer

[perl #39430] [TODO] Method cache not always invalidated

2008-09-07 Thread Christoph Otto via RT
On Sat May 17 14:55:53 2008, pmichaud wrote: > On Mon Jun 12 16:30:13 2006, jonathan wrote: > > Both Parrot_store_global and store_sub call > Parrot_invalidate_method_cache, > > however the versions of these that take keys (Parrot_store_global_p and > > store_sub_p) fail to do so. > > Is this t

[perl #39430] Method cache not always invalidated

2008-05-17 Thread Patrick R. Michaud via RT
On Mon Jun 12 16:30:13 2006, jonathan wrote: > Both Parrot_store_global and store_sub call Parrot_invalidate_method_cache, > however the versions of these that take keys (Parrot_store_global_p and > store_sub_p) fail to do so. Is this ticket still relevant after the pdd15oo changes incorporated

[perl #46169] [TODO] Method cache invalidation should be a namespace function

2007-10-06 Thread via RT
hod cache invalidation should be a namespace function */ Parrot_invalidate_method_cache(interp, str_key, globalname);

[perl #46167] [TODO] Replace temporary hack for method cache invalidation with decent implementation

2007-10-06 Thread via RT
ary hack to notice when key is actually a string, so that * the legacy logic for invalidating method cache will be called; this * is not good enough but it avoids regressesions for now

[perl #46165] [TODO] Implement method cache invalidation in Parrot_store_global_cur()

2007-10-06 Thread via RT
hod cache invalidation should occur */

[perl #45987] [TODO] Replace quick and dirty method cache with a more robust one

2007-10-02 Thread via RT
ect()): /* * quick'n'dirty method cache * TODO: use a hash if method_name is not constant * i.e. from obj.$Sreg(args) * If this hash is implemented mark it during DOD */ One would guess this needs implementing more robustly

[perl #45961] [TODO] Cache the namespace in mmd_create_builtin_multi_meth_2()

2007-10-02 Thread via RT
h_2(): * TODO cache the namespace Do this. (please)

[perl #39430] Method cache not always invalidated

2006-06-12 Thread via RT
# New Ticket Created by Jonathan Worthington # Please include the string: [perl #39430] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=39430 > Both Parrot_store_global and store_sub call Parrot_invalidate_method_cache, ho

Re: [perl #38281] [PATCH] Remove cache.* reference from pobj.h comments

2006-01-25 Thread Leopold Toetsch
Brad Bowman (via RT) wrote: Looking through pobj.h, I found what seems to be a dated comment referring to "cache.*". I don't think this exists anymore, unless it's referring to hashval in some oblique way. Sorry for the delay, I must have missed it. Anyway, your obser

[perl #38281] [PATCH] Remove cache.* reference from pobj.h comments

2006-01-20 Thread via RT
to "cache.*". I don't think this exists anymore, unless it's referring to hashval in some oblique way. UINTVAL hashval; /* cached hash value computation; not yet used */ }; -/* cache.* is intended to just be *shortcuts* to*/ -/* commonly-accessed

Re: #define cache obj.u

2005-07-09 Thread Leopold Toetsch
On Jul 9, 2005, at 19:37, Nicholas Clark wrote: On Fri, Jul 08, 2005 at 06:52:28PM +0200, Leopold Toetsch wrote: No, for sure not. And AFAIK it's not needed nor used. Please drop this line. Done, although curiously it did involve changing 1 line in io/io.c Thx. Fixed that line too. Nic

Re: #define cache obj.u

2005-07-09 Thread Nicholas Clark
On Fri, Jul 08, 2005 at 06:52:28PM +0200, Leopold Toetsch wrote: > No, for sure not. And AFAIK it's not needed nor used. Please drop this line. Done, although curiously it did involve changing 1 line in io/io.c Nicholas Clark

Re: #define cache obj.u

2005-07-08 Thread Leopold Toetsch
Nicholas Clark wrote: Line 216 of pobj.h has: #define cache obj.u Is redefining such a common name a good idea? No, for sure not. And AFAIK it's not needed nor used. Please drop this line. Nicholas Clark Thx, leo

#define cache obj.u

2005-07-08 Thread Nicholas Clark
Line 216 of pobj.h has: #define cache obj.u Is redefining such a common name a good idea? Nicholas Clark

[CVS ci] invalidate method cache in store_global

2004-12-07 Thread Leopold Toetsch
If a name is stored into a namespace that starts with two underscores, the method cache is invalidated now. The follwing program runs now as expected: .sub main @MAIN .local pmc o, cl newclass cl, "Foo" subclass cl, cl, "Bar" $I0 = typeof cl o = new $I0

Re: [CVS ci] indirect register frames 14 - cache the register frame

2004-11-03 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: >>$P1 = interpinfo .INTERPINFO_CURRENT_CONT >>$P1 = clone $P1 >> >>I'm still inclined to make this sequence an opcode, though. The >>cloning is still necessary, as the return continuation is returned. > Hrm. I think the returned continuation should b

Re: [CVS ci] indirect register frames 14 - cache the register frame

2004-11-03 Thread Leopold Toetsch
Piers Cawley <[EMAIL PROTECTED]> wrote: > And, dammit, making a full continuation isn't something a programmer > should do lightly. BTW I had to change your example code (you remember it for sure, it's in t/op/gc_13 inv CVS) (define (choose . all-choices) (let ((old-fail fail)) (call

Re: [CVS ci] indirect register frames 14 - cache the register frame

2004-11-02 Thread Piers Cawley
to sweep through, as well as speeding > up allocation (since we're more likely to have ones at hand, and > likely in cache too) of the things in the first place. And, dammit, making a full continuation isn't something a programmer should do lightly.

Re: [CVS ci] indirect register frames 14 - cache the register frame

2004-11-02 Thread Dan Sugalski
sed in the near-overwhelming majority of the cases -- that is, when nothing can possibly have a hold of 'em. That leaves a lot fewer objects for the DOD to sweep through, as well as speeding up allocation (since we're more likely to have ones at hand, and likely in cache too) of the things in th

Re: [CVS ci] indirect register frames 14 - cache the register frame

2004-11-02 Thread Matt Fowles
All~ I don't like the idea of having to dig down through the entire return chain promoting these guys. Is there a reason not to use DOD/GC to recycle continuations? Matt On Tue, 2 Nov 2004 14:10:09 -0500, Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 6:51 PM +0100 11/2/04, Leopold Toetsch wrote

Re: [CVS ci] indirect register frames 14 - cache the register frame

2004-11-02 Thread Dan Sugalski
At 6:51 PM +0100 11/2/04, Leopold Toetsch wrote: * The stack frame caching is back, hopefully now implemented correctly: 1) when a return continuation is invoked the stack frame is recycled 2) when a continuation is created, all the return continuations up the call chain are converted to re

[CVS ci] indirect register frames 14 - cache the register frame

2004-11-02 Thread Leopold Toetsch
* The stack frame caching is back, hopefully now implemented correctly: 1) when a return continuation is invoked the stack frame is recycled 2) when a continuation is created, all the return continuations up the call chain are converted to real continuations by changing the vtable. This

[CVS ci] method cache

2004-03-20 Thread Leopold Toetsch
Here are recent numbers with the new method cache: $ perl tools/dev/parrotbench.pl -c=parrotbench.conf -b=^oo Numbers are relative to the first one. (lower is better) parrotj parrot parrotC perl-th perlpython ruby oo1 100%104%106%98% 83% 54% 70% oo2

GC vs REFCNT and cache

2002-08-19 Thread nick
I am still _way_ behind on my perl6 e-mail but there has been a spate of discussion on gcc list about how garbage collector is bad for data-cache locality (particularly temporal locality). At least some of gcc folk are considering a switch to refcounts to try and get gcc-3.* back to nearer

Cache

2002-07-09 Thread Dan Sugalski
Ars Technica's got a reasonably nice explanation of CPU caches at http://arstechnica.com/paedia/c/caching/caching-1.html, for the interested. -- Dan --"it's like this"--- Dan Sugalski

[COMMIT] Changed aggregate PMCs to use the internal SELF->data cache

2002-02-01 Thread Jeff G
This is the first step of three major changes coming over the weekend. The only change visible to the assembler will be the syntax 'set P0[3],7' and 'set P5["foo"],P30[7]' for accessing array and hash aggregates. The changes should also allow us to implement multidimensional arrays. -- Jeff <[EMAI

Re: RFC 301 (v1) Cache byte-compiled... Question

2000-09-28 Thread Dan Sugalski
At 03:48 PM 9/28/00 +, John van V wrote: >How would the byte-compiled caches relate to the compiled C code XS'd into >the modules?? When a module is built, in addition to transforming any XS code (or whatever it ultimately is) into an executable, perl will also compile any perl code into b

Re: RFC 301 (v1) Cache byte-compiled... Question

2000-09-28 Thread John van V
How would the byte-compiled caches relate to the compiled C code XS'd into the modules?? Could it be embedded, I think not, but please enlighten me.

Re: RFC 301 (v1) Cache byte-compiled programs and modules

2000-09-27 Thread Russ Allbery
he neck to install in AFS. It's one of the hardest software packages that we have to support because of the cache directory. We tried to maintain it like it's supposed to work, and it failed miserably. We finally had to give up completely and wrap Purify to redirect the cache directo

Re: RFC 301 (v1) Cache byte-compiled programs and modules

2000-09-27 Thread Chaim Frenkel
st RA> compile at installation time and then leave it alone. This isn't really a problem. Purify does this already. If it is not allowed to write into the original directory, You give it a cache directory and it does appropriate magic to map to the original file and associate the correct user t

Re: RFC 301 (v1) Cache byte-compiled programs and modules

2000-09-25 Thread Russ Allbery
Michael Maraist <[EMAIL PROTECTED]> writes: > I suggested this a while ago, and the response was that automatically > writing files is a security risk. You should extend your RFC to > describe a caching directory or configuration. This will be completely impossible to implement in some installa

Re: RFC 301 (v1) Cache byte-compiled programs and modules

2000-09-25 Thread Michael Maraist
t_ cause problems if not implemented correctly (namely that a perl and module version is associated with each .p[lm]c file). In general, I'm for the idea, but I figured I'd pass on the obsticles I encountered. To further your RFC, I'd suggest working out a configuration for a .*c

RFC 301 (v1) Cache byte-compiled programs and modules

2000-09-25 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Cache byte-compiled programs and modules =head1 VERSION Maintainer: Simon Cozens <[EMAIL PROTECTED]> Date: 25 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 301 Version: 1 Status: Deve