Re: Some clarification about JVMTI_EVENT_THREAD_START and PRIMORDIAL phase

2020-07-14 Thread Jaroslav Bachorík
Thank you, Dan, for translating this to an issue! -JB- On Tue, Jul 14, 2020 at 6:08 PM Daniel D. Daugherty wrote: > > Jarsolav, > > I'm copying this reply to the bug (JDK-8249158). I figure folks should > continue the conversation there. > > Dan > > > On 7/14/20 9:31 AM, Jaroslav Bachorík wrote:

Re: Some clarification about JVMTI_EVENT_THREAD_START and PRIMORDIAL phase

2020-07-14 Thread Daniel D. Daugherty
Jarsolav, I'm copying this reply to the bug (JDK-8249158). I figure folks should continue the conversation there. Dan On 7/14/20 9:31 AM, Jaroslav Bachorík wrote: Thank you all for chiming in! My main concern was that the JDK 8 JVMTI spec (https://docs.oracle.com/javase/8/docs/platform/jvmti

Re: Some clarification about JVMTI_EVENT_THREAD_START and PRIMORDIAL phase

2020-07-14 Thread Jaroslav Bachorík
Thank you all for chiming in! My main concern was that the JDK 8 JVMTI spec (https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html#ThreadStart) was contradicting what was actually put to the EARLY_EVENT_BITS variable and therefore which events were allowed in PRIMORDIAL and ONLOAD (http

Re: Some clarification about JVMTI_EVENT_THREAD_START and PRIMORDIAL phase

2020-07-13 Thread Sergey Nazarkin
Hi Daniel, Please correct me if I‘m wrong but the spec change will touch post-JDK8 releases only? Sergey Nazarkin > On Jul 9, 2020, at 19:25, Daniel D. Daugherty > wrote: > > On 7/9/20 9:07 AM, Jaroslav Bachorík wrote: >> Hello, >> >> Recently, after backporting JDK-8233197 to JDK8u

Re: Some clarification about JVMTI_EVENT_THREAD_START and PRIMORDIAL phase

2020-07-13 Thread Daniel D. Daugherty
If there is going to be a spec change, then it would not affect JDK8. I don't think anyone has decided how this issue should be resolved yet. Dan On 7/13/20 7:10 AM, Sergey Nazarkin wrote: Hi Daniel, Please correct me if I‘m wrong but the spec change will touch post-JDK8 releases only? Se

Re: Some clarification about JVMTI_EVENT_THREAD_START and PRIMORDIAL phase

2020-07-13 Thread Alan Bateman
On 09/07/2020 17:25, Daniel D. Daugherty wrote: : However, the above diffs prevent the JVMTI_EVENT_THREAD_START and JVMTI_EVENT_THREAD_END events from being posted earlier than the JVMTI_PHASE_START phase... Unfortunately, I can't find the actual changeset pushed to the Jigsaw report for JDK-807

Re: Some clarification about JVMTI_EVENT_THREAD_START and PRIMORDIAL phase

2020-07-09 Thread Daniel D. Daugherty
On 7/9/20 9:07 AM, Jaroslav Bachorík wrote: Hello, Recently, after backporting JDK-8233197 to JDK8u I received a report from Sergey Nazarkin (cc) that the backport broke JVMTI spec basically emitting JVMTI_EVENT_THREAD_START events in primordial phase while the spec states that it should be emit

Some clarification about JVMTI_EVENT_THREAD_START and PRIMORDIAL phase

2020-07-09 Thread Jaroslav Bachorík
Hello, Recently, after backporting JDK-8233197 to JDK8u I received a report from Sergey Nazarkin (cc) that the backport broke JVMTI spec basically emitting JVMTI_EVENT_THREAD_START events in primordial phase while the spec states that it should be emitted only in either start or live phase. But i