RE: [cp-patches] RFC: Making java.lang.Thread.getContextClassLoader() lazy for threads created outside of Java

2006-05-17 Thread Jeroen Frijters
Archie Cobbs wrote: > Jeroen Frijters wrote: > > I would like to apply the attached patch. It fixes a potential > > initialization order issue for VMs that support running Java code > > without first initializing the VM explicitly (like IKVM does). > > Dumb questions: why don't you initialize the

Re: [cp-patches] RFC: Making java.lang.Thread.getContextClassLoader() lazy for threads created outside of Java

2006-05-17 Thread Archie Cobbs
Jeroen Frijters wrote: I would like to apply the attached patch. It fixes a potential initialization order issue for VMs that support running Java code without first initializing the VM explicitly (like IKVM does). Dumb questions: why don't you initialize the VM in JNI_CreateJavaVM()? What is g

[cp-patches] RFC: Making java.lang.Thread.getContextClassLoader() lazy for threads created outside of Java

2006-05-17 Thread Jeroen Frijters
Hi, I would like to apply the attached patch. It fixes a potential initialization order issue for VMs that support running Java code without first initializing the VM explicitly (like IKVM does). The current code calls ClassLoader.getSystemClassLoader() in the Thread constructor that the VM uses