Re: RFR: 8282475: SafeFetch should not rely on existence of Thread::current [v6]

2022-03-12 Thread Andrew Haley
On Sat, 12 Mar 2022 12:30:39 GMT, Andrew Haley wrote: > 1ns Incidentally, there must be a lot of speculation and bypassing going on there. I can see 15 cycles of latency, probably 20, so that'd be more like 5ns start to finish. M1 is a remarkable thing. - PR: https://git.openjdk.

Re: RFR: 8282475: SafeFetch should not rely on existence of Thread::current [v7]

2022-03-12 Thread Andrew Haley
On Sat, 12 Mar 2022 14:21:13 GMT, Florian Weimer wrote: > > ``` > > extern "C" char address_of_label[] __attribute__ ((visibility ("hidden"))); > > ``` > > It doesn't hurt, but the Itanium ABI does not mangle such global data > symbols, so it's not strictly needed. That's an interesting point

Re: RFR: 8282475: SafeFetch should not rely on existence of Thread::current [v7]

2022-03-12 Thread Florian Weimer
On Sat, 12 Mar 2022 12:32:38 GMT, Andrew Haley wrote: > > into the assembler sources and use > > ```c++ > > extern char address_of_label[] __attribute__ ((visibility > > ("hidden"))); > > ``` > > ITYM > > ``` > extern "C" char address_of_label[] __attribute__ ((visibility ("hidden")));

Re: RFR: 8282475: SafeFetch should not rely on existence of Thread::current [v7]

2022-03-12 Thread Andrew Haley
On Sat, 12 Mar 2022 07:45:57 GMT, Florian Weimer wrote: > into the assembler sources and use > > ```c++ > extern char address_of_label[] __attribute__ ((visibility > ("hidden"))); ITYM extern "C" char address_of_label[] __attribute__ ((visibility ("hidden"))); - PR: http

Re: RFR: 8282475: SafeFetch should not rely on existence of Thread::current [v6]

2022-03-12 Thread Andrew Haley
On Fri, 11 Mar 2022 12:18:36 GMT, Florian Weimer wrote: > > According to > > https://forums.swift.org/t/concurrencys-use-of-thread-local-variables/48654: > > "these accesses are just a move from a system register plus a load/store > > at a constant offset." > > Ideally you'd still benchmark t

Re: RFR: 8282691: add jdb "-R" option for passing any argument to the launched debuggee process [v4]

2022-03-12 Thread Alan Bateman
On Sat, 12 Mar 2022 05:44:21 GMT, Chris Plummer wrote: >> jdb has 3 types of arguments: >> >> 1. Those that are jdb specific, such as -attach, -launch, and -listconnectors >> 2. Those that are passed to the JVM used to run jdb. These are all prefixed >> with -J, and any valid JVM argument can b