Integrated: 8304725: AsyncGetCallTrace can cause SIGBUS on M1

2023-04-11 Thread Johannes Bechberger
On Wed, 22 Mar 2023 15:57:40 GMT, Johannes Bechberger wrote: > Fixes the issue by disabling PCDesc cache modifications when in ASGCT. > > Tested on my M1 mac. This pull request has now been integrated. Changeset: d8af7a60 Author:Johannes Bechberger Committer: Matthias Baesken URL:

Re: RFR: 8298048: Combine CDS archive heap into a single block [v3]

2023-04-11 Thread Ioi Lam
> This PR combines the "open" and "closed" regions of the CDS archive heap into > a single region. This significantly simplifies the implementation, making it > more compatible with non-G1 collectors. There's a net removal of ~1000 lines > in src code and another ~1200 lines of tests. > > **Not

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Stefan Karlsson
On Wed, 12 Apr 2023 02:08:08 GMT, David Holmes wrote: >> That seems fine to me, as long as we don't crash. But my understanding is >> that Generational ZGC will crash if it sees a stale oop. Isn't it possible >> that the racing read sees junk that looks to Generational ZGC like a stale >> oo

Re: RFR: 8298048: Combine CDS archive heap into a single block [v2]

2023-04-11 Thread Ioi Lam
> This PR combines the "open" and "closed" regions of the CDS archive heap into > a single region. This significantly simplifies the implementation, making it > more compatible with non-G1 collectors. There's a net removal of ~1000 lines > in src code and another ~1200 lines of tests. > > **Not

Re: RFR: 8298048: Combine CDS archive heap into a single block [v2]

2023-04-11 Thread Ioi Lam
On Fri, 7 Apr 2023 19:17:46 GMT, Matias Saavedra Silva wrote: >> Ioi Lam has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - more clean up: heap_regions -> heap_region, etc >> - @matias9927 comments > > src/hotspot/share/cds/archiveBuild

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v5]

2023-04-11 Thread David Holmes
On Wed, 12 Apr 2023 04:05:07 GMT, Alex Menkov wrote: > current logic does not follow their stack references Okay that needs to be fixed then. Apologies if that is what you already were doing. - PR Comment: https://git.openjdk.org/jdk/pull/13254#issuecomment-1504587109

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v5]

2023-04-11 Thread Alex Menkov
On Wed, 12 Apr 2023 02:17:14 GMT, David Holmes wrote: > If an object is only reachable from the stack of a VT and the VT itself is > not followed then we don't find that object either. But as I said a VT should > be found via the object it is parked on, or via the scheduler. So is it the > cas

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v10]

2023-04-11 Thread Amit Kumar
On Tue, 11 Apr 2023 18:07:41 GMT, Martin Doerr wrote: > Another remark: Old JDK on s390 used "os.arch = zArch_64", current one > "os.arch = s390x". @offamitkumar: You probably want to take a look. Martin, only concern was that I didn't have a good experience with `s390x` string in [past](http

Re: RFR: 8305341: Alignment should be enforced by alignas instead of compiler specific attributes [v3]

2023-04-11 Thread Kim Barrett
On Sat, 8 Apr 2023 13:24:37 GMT, Julian Waters wrote: >> C11 has been stable for a long time on all platforms, so native code can use >> the standard alignas operator for alignment requirements > > Julian Waters has updated the pull request incrementally with one additional > commit since the l

Re: RFR: 8305084: Remove the removal warnings for finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/FinalizerInfoTest.java and RunFinalizationTest.java [v2]

2023-04-11 Thread David Holmes
On Tue, 11 Apr 2023 12:07:32 GMT, Afshin Zafari wrote: >> The `removal` warnings are suppressed out. >> Test: >> `FinalizerInfoTest` and `RunFinalizationTest` are executed locally. > > Afshin Zafari has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8304834: Fix wrapper insertion in TestScaffold.parseArgs(String args[]) [v5]

2023-04-11 Thread David Holmes
On Tue, 11 Apr 2023 17:51:39 GMT, Leonid Mesnik wrote: >> The TestScaffold incorrectly parse options, it should insert wrapper class >> between VM options and applications classame. > > Leonid Mesnik has updated the pull request incrementally with one additional > commit since the last revision

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v5]

2023-04-11 Thread David Holmes
On Tue, 11 Apr 2023 18:54:09 GMT, Alex Menkov wrote: > The bug is about objects referenced only from stack of unmounted VT are not > reported by FollowReferences. > So we need to detect stackChunk object and report references from them. If an object is only reachable from the stack of a VT and

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread David Holmes
On Tue, 11 Apr 2023 20:40:14 GMT, Dean Long wrote: >> Yes. The whole LockStack is not meant to be accessed cross-thread, pretty >> much like any thread's stack is not meant to be accessed like that >> (including current stack-locking). So what can go wrong? >> With the new locking, we could rea

Re: RFR: 8305341: Alignment should be enforced by alignas instead of compiler specific attributes [v3]

2023-04-11 Thread Kim Barrett
On Sat, 8 Apr 2023 13:24:37 GMT, Julian Waters wrote: >> C11 has been stable for a long time on all platforms, so native code can use >> the standard alignas operator for alignment requirements > > Julian Waters has updated the pull request incrementally with one additional > commit since the l

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v7]

2023-04-11 Thread Alex Menkov
> The fix updates JVMTI FollowReferences implementation to report references > from virtual threads: > - added heap scanning to report unmounted vthreads; > - stacks of mounted vthreads are splitted into 2 parts (vittual thread stack > and carrier thread stack), references are reported with corre

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v6]

2023-04-11 Thread Alex Menkov
> The fix updates JVMTI FollowReferences implementation to report references > from virtual threads: > - added heap scanning to report unmounted vthreads; > - stacks of mounted vthreads are splitted into 2 parts (vittual thread stack > and carrier thread stack), references are reported with corre

Re: RFR: 8298048: Combine CDS archive heap into a single block

2023-04-11 Thread Ashutosh Mehra
On Mon, 3 Apr 2023 03:32:27 GMT, Ioi Lam wrote: > This PR combines the "open" and "closed" regions of the CDS archive heap into > a single region. This significantly simplifies the implementation, making it > more compatible with non-G1 collectors. There's a net removal of ~1000 lines > in src

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v12]

2023-04-11 Thread Glavo
On Tue, 11 Apr 2023 21:09:43 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v12]

2023-04-11 Thread Roger Riggs
> Define an internal jdk.internal.util.Architecture enumeration and static > methods to replace uses of the system property `os.arch`. > The enumeration values are defined to match those used in the build. > The initial values are: `X64, X86, AARCH64, RISCV64, S390, PPC64` > Note that `amd64` and

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v11]

2023-04-11 Thread Martin Doerr
On Tue, 11 Apr 2023 18:35:56 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Dean Long
On Tue, 11 Apr 2023 19:58:19 GMT, Roman Kennke wrote: >> The `_base` array is only initialized to nullptr in debug builds. I don't >> see a release barrier in LockStack::push between the update to _base[] and >> the update to _top, nor a corresponding acquire barrier when reading. >> Doesn't

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Roman Kennke
On Tue, 11 Apr 2023 19:35:36 GMT, Dean Long wrote: >> Given that the race with new lightweight locking is virtually the same as >> the race >> with legacy stack locking, please do not put back the 'LockingMode == 2' >> check >> which would make `jmm_GetThreadInfo()` calls slower with new lightw

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v11]

2023-04-11 Thread ExE Boss
On Tue, 11 Apr 2023 18:35:56 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Dean Long
On Tue, 11 Apr 2023 15:29:16 GMT, Daniel D. Daugherty wrote: >> OK. Given that I haven't looked at the rest of the patch, I leave it up to >> you and the Reviewers to figure out what to do about this code. Cheers. > > Given that the race with new lightweight locking is virtually the same as the

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread Roger Riggs
On Tue, 11 Apr 2023 19:33:28 GMT, Roger Riggs wrote: >>> > Would be great if you could support "os.arch = ppc64" for AIX and legacy >>> > linux, too. >>> >>> Changing os.arch is out of scope for this PR. The best way for that would >>> someone supporting ppc to develop and propose a PR. >> >>

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread Roger Riggs
On Tue, 11 Apr 2023 18:37:11 GMT, Glavo wrote: >>> Would be great if you could support "os.arch = ppc64" for AIX and legacy >>> linux, too. >> >> Changing os.arch is out of scope for this PR. >> The best way for that would someone supporting ppc to develop and propose a >> PR. > >> > Would be

Re: RFR: 8305084: Remove the removal warnings for finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/FinalizerInfoTest.java and RunFinalizationTest.java [v2]

2023-04-11 Thread Chris Plummer
On Tue, 11 Apr 2023 12:07:32 GMT, Afshin Zafari wrote: >> The `removal` warnings are suppressed out. >> Test: >> `FinalizerInfoTest` and `RunFinalizationTest` are executed locally. > > Afshin Zafari has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v5]

2023-04-11 Thread Alex Menkov
On Tue, 11 Apr 2023 03:07:04 GMT, David Holmes wrote: > Seems to me the bug report is asking for unmounted virtual threads to be > considered roots - but virtual threads are deliberately not roots. Any > unmounted virtual thread should be reachable from either the scheduler or > whatever objec

Re: RFR: 8304834: Fix wrapper insertion in TestScaffold.parseArgs(String args[]) [v5]

2023-04-11 Thread Chris Plummer
On Tue, 11 Apr 2023 17:51:39 GMT, Leonid Mesnik wrote: >> The TestScaffold incorrectly parse options, it should insert wrapper class >> between VM options and applications classame. > > Leonid Mesnik has updated the pull request incrementally with one additional > commit since the last revision

Re: RFR: JDK-8305713: DocCommentParser: merge blockContent and inlineContent [v3]

2023-04-11 Thread Jonathan Gibbons
> Please review a cleanup in DocCommentParser to merge blockContent and > inlineContent into a single method to parse "rich content" in a doc comment. Jonathan Gibbons has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 59 commits: - Me

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread Glavo
On Tue, 11 Apr 2023 16:58:13 GMT, Roger Riggs wrote: > > Would be great if you could support "os.arch = ppc64" for AIX and legacy > > linux, too. > > Changing os.arch is out of scope for this PR. The best way for that would > someone supporting ppc to develop and propose a PR. It seems that y

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v11]

2023-04-11 Thread Roger Riggs
> Define an internal jdk.internal.util.Architecture enumeration and static > methods to replace uses of the system property `os.arch`. > The enumeration values are defined to match those used in the build. > The initial values are: `X64, X86, AARCH64, RISCV64, S390, PPC64` > Note that `amd64` and

Re: RFR: JDK-8305713: DocCommentParser: merge blockContent and inlineContent [v2]

2023-04-11 Thread Jonathan Gibbons
> Please review a cleanup in DocCommentParser to merge blockContent and > inlineContent into a single method to parse "rich content" in a doc comment. Jonathan Gibbons has updated the pull request incrementally with 42 additional commits since the last revision: - Merge remote-tracking branch

RFR: JDK-8305713: DocCommentParser: merge blockContent and inlineContent

2023-04-11 Thread Jonathan Gibbons
Please review a cleanup in DocCommentParser to merge blockContent and inlineContent into a single method to parse "rich content" in a doc comment. - Depends on: https://git.openjdk.org/jdk/pull/13362 Commit messages: - JDK-8305713: DocCommentParser: merge blockContent and inlineCon

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v10]

2023-04-11 Thread ExE Boss
On Tue, 11 Apr 2023 18:02:14 GMT, Martin Doerr wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Modified test to check Architecture is64bits() and isLittleEndian() >> against Unsafe respective values. >> Relocate

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v10]

2023-04-11 Thread Martin Doerr
On Tue, 11 Apr 2023 17:58:54 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v10]

2023-04-11 Thread Martin Doerr
On Tue, 11 Apr 2023 17:58:54 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v10]

2023-04-11 Thread Roger Riggs
> Define an internal jdk.internal.util.Architecture enumeration and static > methods to replace uses of the system property `os.arch`. > The enumeration values are defined to match those used in the build. > The initial values are: `X64, X86, AARCH64, RISCV64, S390, PPC64` > Note that `amd64` and

Re: RFR: 8304834: Fix wrapper insertion in TestScaffold.parseArgs(String args[]) [v5]

2023-04-11 Thread Leonid Mesnik
> The TestScaffold incorrectly parse options, it should insert wrapper class > between VM options and applications classame. Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision: Updated comments - Changes: - all: https://

Re: RFR: 8304834: Fix wrapper insertion in TestScaffold.parseArgs(String args[]) [v4]

2023-04-11 Thread Chris Plummer
On Tue, 11 Apr 2023 16:55:42 GMT, Leonid Mesnik wrote: >> The TestScaffold incorrectly parse options, it should insert wrapper class >> between VM options and applications classame. > > Leonid Mesnik has updated the pull request with a new target base due to a > merge or a rebase. The pull requ

Re: RFR: 8298048: Combine CDS archive heap into a single block

2023-04-11 Thread Ioi Lam
On Sat, 8 Apr 2023 07:14:30 GMT, Thomas Stuefe wrote: > This looks like a nice simplification. Will you also combine all mappings at > OS level to a single one, so that you only need one mmap call? Now there's a single call to mmap() in FileMapInfo::map_heap_regions_impl_inner(). This reminds

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread Roger Riggs
On Tue, 11 Apr 2023 10:39:39 GMT, Martin Doerr wrote: >> This should (probably) be correct: >> Suggestion: >> >> case PPC64 -> !OperatingSystem.isAix() && >> Architecture.isLittleEndian(); > > Looks correct, but makes the test pointless for any linux on PPC64. Will change to compar

Re: RFR: 8257967: JFR: Events for loaded agents [v16]

2023-04-11 Thread Markus Grönlund
On Tue, 11 Apr 2023 16:56:49 GMT, Serguei Spitsyn wrote: > > Can I please get a second review to close this one out? > > Markus, I'm still working on it and close to finish. I have some questions to > ask. In fact, I gave up to prove this refactoring does not break anything. > So, we should re

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread Roger Riggs
On Tue, 11 Apr 2023 11:41:24 GMT, Glavo wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove unused static and import of Stabile > > src/java.base/share/classes/jdk/internal/util/PlatformProps.java.template > lin

Re: RFR: 8257967: JFR: Events for loaded agents [v16]

2023-04-11 Thread Serguei Spitsyn
On Tue, 11 Apr 2023 12:33:32 GMT, Markus Grönlund wrote: > Can I please get a second review to close this one out? Markus, I'm still working on it and close to finish. I have some questions to ask. In fact, I gave up to prove this refactoring does not break anything. So, we should rely on testi

Re: RFR: 8304834: Fix wrapper insertion in TestScaffold.parseArgs(String args[]) [v4]

2023-04-11 Thread Leonid Mesnik
> The TestScaffold incorrectly parse options, it should insert wrapper class > between VM options and applications classame. Leonid Mesnik has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains eight commits: - updated after David's commen

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Daniel D . Daugherty
On Tue, 11 Apr 2023 14:04:17 GMT, Stefan Karlsson wrote: >> Hmm you are right. But still - that problem is pre-existing, right? Consider >> this code in the current stack-locking implementation. If we don't stop the >> other thread, we may end up following a stack-pointer from the >> locked-ob

Integrated: 8305761: Resolve multiple definition of 'jvm' when statically linking with JDK native libraries

2023-04-11 Thread Jiangli Zhou
On Sat, 8 Apr 2023 01:11:08 GMT, Jiangli Zhou wrote: > Rename various 'jvm' variables to 'jvm_' to avoid duplicate symbol > problems when statically linking the launcher executable with JDK native > libraries. This pull request has now been integrated. Changeset: ce4b9955 Author:Jiangli Z

Re: RFR: 8305761: Resolve multiple definition of 'jvm' when statically linking with JDK native libraries [v2]

2023-04-11 Thread Jiangli Zhou
On Mon, 10 Apr 2023 19:38:18 GMT, Jiangli Zhou wrote: >> Rename various 'jvm' variables to 'jvm_' to avoid duplicate symbol >> problems when statically linking the launcher executable with JDK native >> libraries. > > Jiangli Zhou has updated the pull request incrementally with one additional

Re: RFR: 8305761: Resolve multiple definition of 'jvm' when statically linking with JDK native libraries [v2]

2023-04-11 Thread Kevin Walls
On Mon, 10 Apr 2023 19:38:18 GMT, Jiangli Zhou wrote: >> Rename various 'jvm' variables to 'jvm_' to avoid duplicate symbol >> problems when statically linking the launcher executable with JDK native >> libraries. > > Jiangli Zhou has updated the pull request incrementally with one additional

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Stefan Karlsson
On Tue, 11 Apr 2023 13:48:15 GMT, Roman Kennke wrote: >> It looks to me like the code could read racingly read the element just above >> `_top`, which could contain a stale oop. If the address of the stale oop >> matches the address of `o` then `contains` would incorrectly return true. >> >> D

Integrated: 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate objects

2023-04-11 Thread Leonid Mesnik
On Mon, 3 Apr 2023 22:20:43 GMT, Leonid Mesnik wrote: > Updated VM internal object allocation C2 intrinsic to post jvmti events when > needed. This pull request has now been integrated. Changeset: 7a5597c3 Author:Leonid Mesnik URL: https://git.openjdk.org/jdk/commit/7a5597c34f3b52d

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Roman Kennke
On Tue, 11 Apr 2023 12:15:07 GMT, Stefan Karlsson wrote: >> The NativeAccess is a left-over from an earlier attempt, and yes I think the >> start_processing() is the actual barrier. There is a single call-path where >> we inspect another thread's lock-stack outside of a safepoint (from >> mana

Re: RFR: 8257967: JFR: Events for loaded agents [v16]

2023-04-11 Thread Markus Grönlund
On Tue, 4 Apr 2023 14:39:19 GMT, Markus Grönlund wrote: >> Greetings, >> >> We are adding support to let JFR report on Agents. >> >> Design >> >> An Agent is a library that uses any instrumentation or profiling APIs. Most >> agents are started and initialized on the command line, but age

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Stefan Karlsson
On Tue, 11 Apr 2023 11:47:46 GMT, Roman Kennke wrote: >> src/hotspot/share/runtime/lockStack.inline.hpp line 111: >> >>> 109: int end = to_index(_top); >>> 110: for (int i = end - 1; i >= 0; i--) { >>> 111: if (NativeAccess<>::oop_load(&_base[i]) == o) { >> >> The use of NativeAccess he

Re: RFR: 8305084: Remove the removal warnings for finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/FinalizerInfoTest.java and RunFinalizationTest.java [v2]

2023-04-11 Thread Afshin Zafari
On Tue, 11 Apr 2023 10:57:34 GMT, David Holmes wrote: > Suppression of warning is fine but the bug synopsis (and so PR title) needs > to be updated to reflect what is actually happening here. And the bug title > doesn't really make sense anyway - why is the test location given twice ?? Bug and

Re: RFR: 8305084: Remove the removal warnings for finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/FinalizerInfoTest.java and RunFinalizationTest.java [v2]

2023-04-11 Thread Afshin Zafari
> The `removal` warnings are suppressed out. > Test: > `FinalizerInfoTest` and `RunFinalizationTest` are executed locally. Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision: Remove the removal warnings for finalize() from test/hotspot/

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread Glavo
On Sat, 8 Apr 2023 18:00:53 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X8

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Roman Kennke
On Tue, 11 Apr 2023 11:36:10 GMT, Stefan Karlsson wrote: >> Roman Kennke has updated the pull request incrementally with one additional >> commit since the last revision: >> >> RISCV update > > src/hotspot/share/runtime/lockStack.inline.hpp line 111: > >> 109: int end = to_index(_top); >>

Re: RFR: 8291555: Implement alternative fast-locking scheme [v56]

2023-04-11 Thread Stefan Karlsson
On Thu, 6 Apr 2023 11:59:45 GMT, Roman Kennke wrote: >> This change adds a fast-locking scheme as an alternative to the current >> stack-locking implementation. It retains the advantages of stack-locking >> (namely fast locking in uncontended code-paths), while avoiding the overload >> of the

Re: RFR: 8305761: Resolve multiple definition of 'jvm' when statically linking with JDK native libraries [v2]

2023-04-11 Thread Alan Bateman
On Mon, 10 Apr 2023 19:38:18 GMT, Jiangli Zhou wrote: >> Rename various 'jvm' variables to 'jvm_' to avoid duplicate symbol >> problems when statically linking the launcher executable with JDK native >> libraries. > > Jiangli Zhou has updated the pull request incrementally with one additional

Re: RFR: 8305084: Remove finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/ that are used in serviceability/dcmd/gc/

2023-04-11 Thread David Holmes
On Tue, 11 Apr 2023 10:20:25 GMT, Afshin Zafari wrote: > The `removal` warnings are suppressed out. > Test: > `FinalizerInfoTest` and `RunFinalizationTest` are executed locally. Suppression of warning is fine but the bug synopsis (and so PR title) needs to be updated to reflect what is actually

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread Martin Doerr
On Tue, 11 Apr 2023 10:26:02 GMT, ExE Boss wrote: >> test/jdk/jdk/internal/util/ArchTest.java line 128: >> >>> 126: case RISCV64 -> true; >>> 127: case S390 -> false; >>> 128: case PPC64 -> true; >> >> This is not always true. The PPC64 architecture supports

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread ExE Boss
On Tue, 11 Apr 2023 10:15:27 GMT, Martin Doerr wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove unused static and import of Stabile > > test/jdk/jdk/internal/util/ArchTest.java line 128: > >> 126:

RFR: 8305084: Remove finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/ that are used in serviceability/dcmd/gc/

2023-04-11 Thread Afshin Zafari
The `removal` warnings are suppressed out. Test: `FinalizerInfoTest` and `RunFinalizationTest` are executed locally. - Commit messages: - 8305084: Remove finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/ that are used in serviceability/dcmd/gc/ Changes: https://git.openjdk

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v9]

2023-04-11 Thread Martin Doerr
On Sat, 8 Apr 2023 18:00:53 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X8