Re: Issue with BuiltinClassLoader.ucp field not being visible

2021-08-10 Thread Luke Hutchison
On Tue, Aug 10, 2021 at 1:34 AM Luke Hutchison wrote: > Maybe that should be part of the Instrumentation class, so that it is only > accessible to Java agent code that is able to get a reference to an > Instrumentation object. > Actually I take that last part back, that would

Re: Issue with BuiltinClassLoader.ucp field not being visible

2021-08-10 Thread Luke Hutchison
On Tue, Aug 10, 2021 at 12:51 AM Luke Hutchison wrote: > Could a getURLClassPath() method please be added to BuiltInClassLoader? > For security reasons, the getURLClassPath() method should return a copy of ucp, not the reference to ucp, to prevent the caller from modifying the system classpath.

Re: Calling a lambda expression from a new thread before the main method is run causes the thread to lock up

2017-01-24 Thread Luke Hutchison
Thank you Remi and David for your detailed explanations, this was very helpful, and I understand the issues now. Please go ahead and close the Jira bug I created for this (JDK-8173252), I see this is WAI. On Tue, Jan 24, 2017 at 12:39 AM, wrote: > Here is your code slightly

Re: Calling a lambda expression from a new thread before the main method is run causes the thread to lock up

2017-01-24 Thread Luke Hutchison
On Tue, Jan 24, 2017 at 12:02 AM, Remi Forax wrote: > a worker thread of the executor will try to execute the code of the static > method but because the static initializer is not finished, the worker > thread has to wait But what is the worker thread waiting for in the case

Re: Calling a lambda expression from a new thread before the main method is run causes the thread to lock up

2017-01-23 Thread Luke Hutchison
On Mon, Jan 23, 2017 at 11:37 PM, Luke Hutchison <luke.hu...@gmail.com> wrote: > On Mon, Jan 23, 2017 at 11:21 PM, Luke Hutchison <luke.hu...@gmail.com> > wrote: > >> That looks like a variation of the classic class initialization deadlock >>> problem. Your

Re: Calling a lambda expression from a new thread before the main method is run causes the thread to lock up

2017-01-23 Thread Luke Hutchison
On Mon, Jan 23, 2017 at 11:21 PM, Luke Hutchison <luke.hu...@gmail.com> wrote: > That looks like a variation of the classic class initialization deadlock >> problem. Your main thread is blocked in es.submit(callable).get(); while >> still within the static initializer o

Re: Calling a lambda expression from a new thread before the main method is run causes the thread to lock up

2017-01-23 Thread Luke Hutchison
On Mon, Jan 23, 2017 at 10:48 PM, David Holmes <david.hol...@oracle.com> wrote: > On 24/01/2017 2:41 PM, Luke Hutchison wrote: > >> If you run the code below, the active JVM thread (in the ExecutorService) >> locks up when the lambda expression is called. The Eclipse

Calling a lambda expression from a new thread before the main method is run causes the thread to lock up

2017-01-23 Thread Luke Hutchison
If you run the code below, the active JVM thread (in the ExecutorService) locks up when the lambda expression is called. The Eclipse debugger is not able to stop the locked-up thread, or get a stacktrace beyond the call into the lambda. The problem seems to be that some part of the Java 8 lambda