Re: [PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread Charles Oliver Nutter
John Rose wrote: > On Apr 24, 2008, at 1:23 PM, Charles Oliver Nutter wrote: >> John Rose wrote: >>> This is to fix the build bug observed by Selvan and Charlie. >>> It is a second-order patch (patch on a patch repository). Apply it >>> in davinci/patches/hotspot/. >>> May I have a reviewer, plea

Re: [PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread Charles Oliver Nutter
John Rose wrote: > So, I'll count your build success as a review. (Unless you have more > review comments? :-) I realized I had run without testable, so I re-ran to confirm...build looks fine. - Charlie ___ mlvm-dev mailing list [email protected]

Re: AnonymousClassLoader and ClassLoader

2008-04-24 Thread John Rose
On Apr 24, 2008, at 2:26 AM, Rémi Forax wrote: > In my opinion, getResource() is not the only method that makes this > assumption The getResource method probably needs to be adjusted since anonymous classes have names that are intentionally distorted. The anonymous class name ends with "/${h

Re: AnonymousClassLoader and ClassLoader

2008-04-24 Thread John Rose
On Apr 24, 2008, at 4:43 AM, Rémi Forax wrote: > I answer to myself, it's only in the case the host-class is null, > otherwise the classloader used is the one of the host-class. Right. The new class is supposed to inherit the same access rights, protection domain, class loader, from the host c

Re: AnonymousClassLoader and ClassLoader

2008-04-24 Thread Rémi Forax
Charles Oliver Nutter a écrit : > Rémi Forax wrote: >> Yesterday evening, I've tried to replace the application classloader >> (the one used to load the application) by one that use an anymous >> class loader >> to load the class. And i've tested by launching SwingSet2. >> >> And it doesn't work b

continuations design

2008-04-24 Thread Rodrigo Kumpera
Hey guys, I've been lurking this list for a while and I got a few questions about the callcc design. >From reading the patches when yielding from a contituation the pertinent stack frames are copied. Have you considered allocating the continuation stack separately and switching to it on callcc? G

Re: [PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread Rémi Forax
John Rose a écrit : > On Apr 24, 2008, at 1:23 PM, Charles Oliver Nutter wrote: >> John Rose wrote: >>> This is to fix the build bug observed by Selvan and Charlie. >>> It is a second-order patch (patch on a patch repository). Apply it >>> in davinci/patches/hotspot/. >>> May I have a reviewer, p

hg: mlvm/mlvm/hotspot: callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread john . rose
Changeset: db693384cccb Author:jrose Date: 2008-04-24 14:31 -0700 URL: http://hg.openjdk.java.net/mlvm/mlvm/hotspot/rev/db693384cccb callcc, anonk: anonk will not build unless callcc is pushed also Summary: move wkk tweak from callcc to anonk (pending wkk fix is bug 6652736) Review

hg: mlvm/mlvm: adjust and clarify build instructions

2008-04-24 Thread john . rose
Changeset: 916d22cb98a6 Author:jrose Date: 2008-04-24 14:33 -0700 URL: http://hg.openjdk.java.net/mlvm/mlvm/rev/916d22cb98a6 adjust and clarify build instructions Reviewed-by: [EMAIL PROTECTED] ! README.txt ___ mlvm-dev mailing list mlvm

Re: [PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread Rémi Forax
Charles Oliver Nutter a écrit : > John Rose wrote: > >> This is to fix the build bug observed by Selvan and Charlie. >> >> It is a second-order patch (patch on a patch repository). Apply it in >> davinci/patches/hotspot/. >> >> May I have a reviewer, please? >> > > I was able to build, bu

Re: [PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread John Rose
On Apr 24, 2008, at 1:23 PM, Charles Oliver Nutter wrote: > John Rose wrote: >> This is to fix the build bug observed by Selvan and Charlie. >> It is a second-order patch (patch on a patch repository). Apply >> it in davinci/patches/hotspot/. >> May I have a reviewer, please? > > Checking it out

Re: [PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: > I was able to build, but I can't seem to load > java.dyn.AnonymousClassLoader in any code I'm running. That could be > unrelated, perhaps some step I missed? Doesn't seem like java.dyn is getting stuffed into the build output for me: [EMAIL PROTECTED]:~/jdk7/jdk7/

Re: [PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread Charles Oliver Nutter
John Rose wrote: > This is to fix the build bug observed by Selvan and Charlie. > > It is a second-order patch (patch on a patch repository). Apply it in > davinci/patches/hotspot/. > > May I have a reviewer, please? I was able to build, but I can't seem to load java.dyn.AnonymousClassLoader

Re: [PATCH] adjust and clarify build instructions

2008-04-24 Thread Charles Oliver Nutter
John Rose wrote: > For this one, too, may I have a reviewer? Thanks. -- John > > P.S. Reviews can include suggestions for improvement! Looks good to me, and now includes the two key commands I had to hunt for: qpop and qpush. No suggestions for improvement at the moment, because I know exact

Re: [PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread Charles Oliver Nutter
John Rose wrote: > This is to fix the build bug observed by Selvan and Charlie. > > It is a second-order patch (patch on a patch repository). Apply it in > davinci/patches/hotspot/. > > May I have a reviewer, please? Checking it out now. Should this be built with or without testable (i.e. are

[PATCH] adjust and clarify build instructions

2008-04-24 Thread John Rose
For this one, too, may I have a reviewer? Thanks. -- John P.S. Reviews can include suggestions for improvement! readme.patch Description: Binary data ___ mlvm-dev mailing list [email protected] http://mail.openjdk.java.net/mailman/listinfo

[PATCH] callcc, anonk: anonk will not build unless callcc is pushed also

2008-04-24 Thread John Rose
This is to fix the build bug observed by Selvan and Charlie. It is a second-order patch (patch on a patch repository). Apply it in davinci/patches/hotspot/. May I have a reviewer, please? -- John wkk-tweak.dpatch Description: Binary data ___ ml

Re: Switch profiling for better switch performance?

2008-04-24 Thread John Rose
On Apr 24, 2008, at 11:29 AM, Charles Oliver Nutter wrote: I know resources are a problem, but is there any thought going towards improving switch performance? I know at least one JRuby team member that could provide some pretty unpleasant benchmark results that show the pain we're facing. T

Re: Open JDK build with mlvm patches

2008-04-24 Thread John Rose
[cc-ing mlvm-dev in reply, because of general interest] On Apr 24, 2008, at 5:06 AM, Thamaraiselvan Poomalai wrote: Hello John, I have successfully compiled hotsopt and jdk with mlvm patches from http://hg.openjdk.java.net/mlvm/mlvm. Thanks for giving it a spin, Selvan. 1) Though i did f

Switch profiling for better switch performance?

2008-04-24 Thread Charles Oliver Nutter
I'm a little fuzzy on the status/level of optimization HotSpot performance based on switch profiling. John Rose's wiki page on HotSpot optimizations claims that switches are profiled, but that the information isn't used very well. And on JRuby and JOni projects, we have seen that large switches

Re: Status of callcc

2008-04-24 Thread Charles Oliver Nutter
Lukas Stadler wrote: > Hi! > > I'm working on this for 1 1/2 months now (under Johns supervision). I've > implemented the deserialization part and I'm currently finishing an > alternative representation of the serialized stack that is more > accessible from the Java side. This should soon be fi

Re: Status of callcc

2008-04-24 Thread Lukas Stadler
Hi! I'm working on this for 1 1/2 months now (under Johns supervision). I've implemented the deserialization part and I'm currently finishing an alternative representation of the serialized stack that is more accessible from the Java side. This should soon be finished and I'll hopefully be abl

Re: Status of callcc

2008-04-24 Thread Charles Oliver Nutter
MenTaLguY wrote: > On Thu, 24 Apr 2008 10:52:42 -0500, Charles Oliver Nutter <[EMAIL PROTECTED]> > wrote: >> - What's the performance like for copy/restore? I ask because I'm >> curious if it would be possible to implement a cooperative threading >> environment with the stack copying capabilities

Re: Status of callcc

2008-04-24 Thread Rémi Forax
Charles Oliver Nutter a écrit : > While I'm waiting, hopefully, for someone to hold my hg-inexperienced > hand, I was wondering about the status of copyStack/restoreStack at > present. A few questions off the top of my head: > > - What's the correct way to use Unsafe to test this out? All I can f

Re: Status of callcc

2008-04-24 Thread MenTaLguY
On Thu, 24 Apr 2008 10:52:42 -0500, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > - What's the performance like for copy/restore? I ask because I'm > curious if it would be possible to implement a cooperative threading > environment with the stack copying capabilities as they exist today. I

Status of callcc

2008-04-24 Thread Charles Oliver Nutter
While I'm waiting, hopefully, for someone to hold my hg-inexperienced hand, I was wondering about the status of copyStack/restoreStack at present. A few questions off the top of my head: - What's the correct way to use Unsafe to test this out? All I can find online are the nasty reflection hack

Re: DVM patches applied, but build fails

2008-04-24 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: > Seems like I'm missing something, or otherwise not patching correctly: After a clean and rebuild, errors come out slightly differently: /home/headius/jdk7/jdk7/hotspot/src/share/vm/classfile/classFileParser.cpp: In member function ‘constantPoolHandle ClassFilePars

DVM patches applied, but build fails

2008-04-24 Thread Charles Oliver Nutter
Seems like I'm missing something, or otherwise not patching correctly: g++ -DLINUX -D_GNU_SOURCE -DIA32 -DPRODUCT -I. -I../generated/adfiles -I../generated/jvmtifiles -I/home/headius/jdk7/jdk7/hotspot/src/share/vm/asm -I/home/headius/jdk7/jdk7/hotspot/src/share/vm/c1 -I/home/headius/jdk7/jdk7/

Re: Da Vinci MLVM: Interest for an very old language running on an extended JVM

2008-04-24 Thread Francis ANDRE
>> I am not requesting new opcodes but just relaxing the array type contraint >> of the already existing xALOAD & xASTORE when the VM run a Cobol or C class. > It really amounts to the same complexity as a new opcode, since every > tool or JVM phase that looks at opcodes may need to know the ne

Re: AnonymousClassLoader and ClassLoader

2008-04-24 Thread Charles Oliver Nutter
Rémi Forax wrote: > Yesterday evening, I've tried to replace the application classloader > (the one used to load the application) by one that use an anymous class > loader > to load the class. And i've tested by launching SwingSet2. > > And it doesn't work because UI program like SwingSet looku

Re: welcome to the Da Vinci archipelago

2008-04-24 Thread Charles Oliver Nutter
John Rose wrote: > On Apr 15, 2008, at 8:17 AM, Charles Oliver Nutter wrote: >> >> I'm also interested in what we can do to help languages on pre-JDK7 >> >> JVMs, since the vast majority of real users of JRuby (for example) could >> >> use some real help now. But I will look at your patches and t

Got a build up and going now...

2008-04-24 Thread Charles Oliver Nutter
Ok, finally got around to getting OpenJDK + MLVM patches up and building. Today I'm planning to look at: - JRuby using anonymous classloading Ideally this will just be a matter of swapping in a different classloader, but then would come the removal of a lot of hassle we currently have to keep

Re: AnonymousClassLoader and ClassLoader

2008-04-24 Thread Rémi Forax
Rémi Forax a écrit : > Yesterday evening, I've tried to replace the application classloader > (the one used to load the application) by one that use an anymous class > loader > to load the class. And i've tested by launching SwingSet2. > > And it doesn't work because UI program like SwingSet loo

AnonymousClassLoader and ClassLoader

2008-04-24 Thread Rémi Forax
Yesterday evening, I've tried to replace the application classloader (the one used to load the application) by one that use an anymous class loader to load the class. And i've tested by launching SwingSet2. And it doesn't work because UI program like SwingSet lookup their resources like image,