RE: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-26 Thread Jeroen Frijters
Mark Wielaard wrote: > On Mon, 2005-07-25 at 18:17 +0200, Jeroen Frijters wrote: > > Is this an important scenario? I thought you long haired > types didn't > > like binary distributions ;-) > > He he. Sure we don't. But if you follow the harmony effort of the > cleanly shaved apache types you wi

RE: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Mark Wielaard
Hi Jeroen, On Mon, 2005-07-25 at 18:17 +0200, Jeroen Frijters wrote: > Is this an important scenario? I thought you long haired types didn't > like binary distributions ;-) He he. Sure we don't. But if you follow the harmony effort of the cleanly shaved apache types you will have noticed that the

RE: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Aaron Luchko
On Mon, 2005-07-25 at 18:20 +0200, Mark Wielaard wrote: > On Mon, 2005-07-25 at 17:55 +0200, Jeroen Frijters wrote: > > > This won't work if you make the VM_USE_CACHE field static final. Then > > > the constant will be compiled into ClassLoader making it impossible to > > > override for the runtime

Re: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Archie Cobbs
Jeroen Frijters wrote: Oh, I'm sorry, I think see what you mean. If a VM would take a binary GNU Classpath jar, it wouldn't be able to override the value of the flag. Is this an important scenario? I thought you long haired types didn't like binary distributions ;-) OK now I get it too... I ca

RE: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Jeroen Frijters
Jeroen Frijters wrote: > Mark Wielaard wrote: > > On Mon, 2005-07-25 at 16:29 +0200, Jeroen Frijters wrote: > > > I committed the attached patch to complete to ability of the VM to > > > bypass the class caching in ClassLoader. > > > > > > 2005-07-25 Jeroen Frijters <[EMAIL PROTECTED]> > > > > >

RE: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Mark Wielaard
On Mon, 2005-07-25 at 17:55 +0200, Jeroen Frijters wrote: > > This won't work if you make the VM_USE_CACHE field static final. Then > > the constant will be compiled into ClassLoader making it impossible to > > override for the runtime vm-classes later. It has to be a > > static method for that to

RE: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Jeroen Frijters
Mark Wielaard wrote: > Yes, but unfortunately that doesn't change the byte-code of the > ClassLoader class. static final primitive (and String) field > values are actually inlined into other classes. So you can replace > VMClassLoader all you want with a version the has VM_USE_CACHE set > to anoth

RE: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Jeroen Frijters
Mark Wielaard wrote: > On Mon, 2005-07-25 at 16:29 +0200, Jeroen Frijters wrote: > > I committed the attached patch to complete to ability of the VM to > > bypass the class caching in ClassLoader. > > > > 2005-07-25 Jeroen Frijters <[EMAIL PROTECTED]> > > > > * java/lang/ClassLoader.java

Re: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Archie Cobbs
Mark Wielaard wrote: I committed the attached patch to complete to ability of the VM to bypass the class caching in ClassLoader. This won't work if you make the VM_USE_CACHE field static final. Then the constant will be compiled into ClassLoader making it impossible to override for the runtime

Re: [cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Mark Wielaard
Hi, On Mon, 2005-07-25 at 16:29 +0200, Jeroen Frijters wrote: > I committed the attached patch to complete to ability of the VM to > bypass the class caching in ClassLoader. > > 2005-07-25 Jeroen Frijters <[EMAIL PROTECTED]> > > * java/lang/ClassLoader.java > (loadedClasses): Se

[cp-patches] FYI: ClassLoader caching Part 2

2005-07-25 Thread Jeroen Frijters
Hi, I committed the attached patch to complete to ability of the VM to bypass the class caching in ClassLoader. Regards, Jeroen 2005-07-25 Jeroen Frijters <[EMAIL PROTECTED]> * java/lang/ClassLoader.java (loadedClasses): Set based on VMClassLoader.VM_USE_CACHE. (define