Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-06-11 Thread Ron Pressler
> On 11 Jun 2024, at 18:19, David Lloyd wrote: > > I would support this solution; it would solve the problem for conformant > serialization libraries. If a class has a `readObject`/etc. then we use it - > we wouldn't care if it was "natural" or generated. This also gives us the > option to

Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-06-11 Thread Ron Pressler
> On 11 Jun 2024, at 17:27, David Lloyd wrote: > > > > On Tue, Jun 11, 2024 at 10:17 AM Alan Bateman wrote: > On 06/06/2024 18:37, David Lloyd wrote: >> Just bumping this one more time. I intend to start by opening a JIRA to add >> the two proposed methods to `ReflectionFactory`, and go

Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-06-07 Thread Ron Pressler
> On 6 Jun 2024, at 18:37, David Lloyd wrote: > > Just bumping this one more time. I intend to start by opening a JIRA to add > the two proposed methods to `ReflectionFactory`, and go from there. I guess > that we might need a JEP for the proposed serialization restrictions, which > is going

Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-05-03 Thread Ron Pressler
> On 3 May 2024, at 18:33, David Lloyd wrote: > > > On Fri, May 3, 2024 at 10:12 AM Mark Reinhold > wrote: > https://openjdk.org/jeps/471 > > Summary: Deprecate the memory-access methods in sun.misc.Unsafe for > removal in a future release. > > > We still use Unsafe fairly often in

Re: RFR: 8317870: Add @sealedGraph to Thread.Builder

2023-10-11 Thread Ron Pressler
On Wed, 11 Oct 2023 07:52:54 GMT, Per Minborg wrote: > This PR proposes to Add @sealedGraph to `Thread.Builder`. I don't think it's helpful here. - PR Comment: https://git.openjdk.org/jdk/pull/16138#issuecomment-1757905176

Re: RFR: 8316456: StackWalker may skip Continuation::yield0 frame mistakenly

2023-09-20 Thread Ron Pressler
On Mon, 18 Sep 2023 23:00:09 GMT, Mandy Chung wrote: > `JVM_MoreStackWalk` has a bug that always assumes that the Java frame > stream is currently at the frame decoded in the last patch and so always > advances to the next frame before filling in the new batch of stack frame. > However

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked [v4]

2023-09-19 Thread Ron Pressler
On Tue, 19 Sep 2023 10:35:33 GMT, Alan Bateman wrote: >> Thread::getState is an API for monitoring and management purposes to report >> the thread state. If a virtual thread is parked with LockSupport.parkNanos, >> its state is reported as WAITING when it should be TIMED_WAITING. JVM TI >>

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked [v3]

2023-09-18 Thread Ron Pressler
On Thu, 14 Sep 2023 13:30:28 GMT, Alan Bateman wrote: >> Thread::getState is an API for monitoring and management purposes to report >> the thread state. If a virtual thread is parked with LockSupport.parkNanos, >> its state is reported as WAITING when it should be TIMED_WAITING. JVM TI >>

Re: RFR: 8309853: StructuredTaskScope.join description improvements

2023-06-17 Thread Ron Pressler
On Mon, 12 Jun 2023 14:32:07 GMT, Alan Bateman wrote: > StructuredTaskScope's class description introduces the join method as waiting > for all subtasks to finish but the API docs for join/joinUntil are phrased in > terms of waiting for all threads to finish. ShutdownOnXXX join/joinUntil >

Re: RFR: 8309545: Thread.interrupted from virtual thread needlessly resets interrupt status

2023-06-08 Thread Ron Pressler
On Wed, 7 Jun 2023 15:12:40 GMT, Alan Bateman wrote: > Thread.interrupted is used to "get and clear" the current thread's interrupt > status. When called from a virtual thread, the current implementation always > clears the carrier's interrupt status. There is no need to do this when the >

Re: RFR: 8304448: Kitchensink failed: assert(!thread->is_in_any_VTMS_transition()) failed: class prepare events are not allowed in any VTMS transition

2023-03-23 Thread Ron Pressler
On Thu, 23 Mar 2023 09:10:26 GMT, Serguei Spitsyn wrote: > The fix was suggested/provided by @AlanBateman. > Continuation should use Unsafe.compareAndSetReference rather than a VH here. > We had to change CHM and VT back to Unsafe for similar reasons. > > Testing: Mach5 runs of tiers 1-6 are in

Re: RFR: 8296896: Change virtual Thread.yield to use external submit

2022-12-07 Thread Ron Pressler
On Tue, 6 Dec 2022 10:16:38 GMT, Alan Bateman wrote: > The implementation of Thread.yield for virtual threads is currently a "lazy > submit". This means the task for the virtual thread is queued to the > carrier/worker local queue without signalling other threads. This behavior > can be

Re: JEP400 vs new Scanner(System.in)

2022-10-13 Thread Ron Pressler
Hi. The appropriate list is core-libs-dev, where this discussion should continue. System.in is the standard input, which may or may not be the keyboard. For keyboard input, take a look at the java.io.Console class [1], in particular its charset and reader methods. [1]:

Re: Coupling in ExtentLocal

2022-07-29 Thread Ron Pressler
Hi. The difference between ExtentLocals and other TwR constructs is that we’d like to use it for critical, foundational, things where we want guarantees we can rely on, and we haven’t been able to find a way to guarantee them as well as we’d like with TwR, even dynamically. Yes, we are

Re: RFR: 8290531: Loom: Parallelize a few tests more deeply

2022-07-26 Thread Ron Pressler
On Tue, 19 Jul 2022 12:52:11 GMT, Aleksey Shipilev wrote: > Some of the newly added Loom tests are long-running, and thus they delay the > completion of otherwise very parallel tier1/jdk_loom. We can parallelize them > a bit better to avoid these testing stalls. > > Improvements on Linux

Re: RFR: 8290531: Loom: Parallelize a few tests more deeply

2022-07-22 Thread Ron Pressler
On Tue, 19 Jul 2022 12:52:11 GMT, Aleksey Shipilev wrote: > Some of the newly added Loom tests are long-running, and thus they delay the > completion of otherwise very parallel tier1/jdk_loom. We can parallelize them > a bit better to avoid these testing stalls. > > Improvements on Linux