Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v48]

2024-08-12 Thread Shaojin Wen
On Tue, 13 Aug 2024 01:39:33 GMT, Shaojin Wen wrote: >> This PR implements the same algorithm as the current generateMHInlineCopy >> based on bytecode to improve startup performance. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v48]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: add jtreg HiddenClassUnloading - Changes:

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors [v2]

2024-08-12 Thread David Holmes
On Mon, 12 Aug 2024 16:11:46 GMT, Viktor Klang wrote: >> 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when >> failing due to a LinkageError or other errors > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors [v2]

2024-08-12 Thread David Holmes
On Mon, 12 Aug 2024 21:37:45 GMT, Doug Lea wrote: >> src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java >> line 381: >> >>> 379: else >>> 380: break; >>> 381: } catch (Error | RuntimeException ex

Re: RFR: 8337302: Undefined type variable results in null [v2]

2024-08-12 Thread Rafael Winterhalter
On Mon, 12 Aug 2024 13:51:25 GMT, Chen Liang wrote: >> Rafael Winterhalter has refreshed the contents of this pull request, and >> previous commits have been removed. The incremental views will show >> differences compared to the previous content of the PR. The pull request >> contains one new

Re: RFR: 8337302: Undefined type variable results in null [v3]

2024-08-12 Thread Rafael Winterhalter
> When a type uses a type variable without a declaration, no exception is > thrown. This change triggers a `TypeNotFoundException` to be thrown. Rafael Winterhalter has updated the pull request incrementally with one additional commit since the last revision: 8337302: Add missing visibility m

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v23]

2024-08-12 Thread Shaojin Wen
On Fri, 2 Aug 2024 04:26:45 GMT, Chen Liang wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix performance regression caused by args.erase() > > Because we load the class in the bootstrap loader so it can access ja

Re: RFR: 8338021: Support saturating vector operators in VectorAPI [v2]

2024-08-12 Thread Paul Sandoz
On Thu, 8 Aug 2024 17:20:06 GMT, Jatin Bhateja wrote: >> Hi All, >> >> As per the discussion on panama-dev mailing list[1], patch adds the support >> following new vector operators. >> >> >> . SATURATING_UADD : Saturating unsigned addition. >> . SATURATING_ADD: Saturating sig

Re: RFR: 8338023: Support two vector selectFrom API

2024-08-12 Thread Paul Sandoz
On Thu, 8 Aug 2024 06:57:28 GMT, Jatin Bhateja wrote: > Hi All, > > As per the discussion on panama-dev mailing list[1], patch adds the support > for following new two vector permutation APIs. > > > Declaration:- > Vector.selectFrom(Vector v1, Vector v2) > > > Semantics:- > Using in

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors [v2]

2024-08-12 Thread Doug Lea
On Mon, 12 Aug 2024 16:08:31 GMT, Viktor Klang wrote: >> Viktor Klang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Catching both Error and RuntimeException > > src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongS

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v47]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: new Lookup(String.class) - Changes: - all:

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v46]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: revert MemberName - Changes: - all: https:

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v41]

2024-08-12 Thread Chen Liang
On Mon, 12 Aug 2024 19:26:46 GMT, Claes Redestad wrote: >> src/java.base/share/classes/java/lang/invoke/MemberName.java line 961: >> >>> 959: return null; >>> 960: } >>> 961: if (allowedModes != LM_TRUSTED) { >> >> ❌ You must revert changes to

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v45]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: add comments - Changes: - all: https://git

Re: RFR: 8337302: Undefined type variable results in null [v2]

2024-08-12 Thread Chen Liang
On Mon, 12 Aug 2024 07:31:09 GMT, Rafael Winterhalter wrote: >> When a type uses a type variable without a declaration, no exception is >> thrown. This change triggers a `TypeNotFoundException` to be thrown. > > Rafael Winterhalter has refreshed the contents of this pull request, and > previou

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v44]

2024-08-12 Thread Claes Redestad
On Mon, 12 Aug 2024 19:15:14 GMT, Shaojin Wen wrote: >> This PR implements the same algorithm as the current generateMHInlineCopy >> based on bytecode to improve startup performance. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v41]

2024-08-12 Thread Claes Redestad
On Mon, 12 Aug 2024 16:21:48 GMT, Chen Liang wrote: >> Shaojin Wen has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - fix comments >> - remove unused code > > src/java.base/share/classes/java/lang/invoke/MemberName.java line 961: > >> 9

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v23]

2024-08-12 Thread Shaojin Wen
On Fri, 2 Aug 2024 04:26:45 GMT, Chen Liang wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix performance regression caused by args.erase() > > Because we load the class in the bootstrap loader so it can access ja

Integrated: 8338060: jdk/internal/util/ReferencedKeyTest should be more robust

2024-08-12 Thread Roger Riggs
On Fri, 9 Aug 2024 15:54:51 GMT, Roger Riggs wrote: > Addressing latent issues with ReferencedKeyTest > - During the `methods()` tests the keys should be strongly held to avoid > inadvertent GC collection and subsequent test failures (JDK-8336926) > - Merge changes from Valhalla to use String (i

Re: RFR: 8338014: Improve usage of @jvms tags in class file API

2024-08-12 Thread Chen Liang
On Thu, 8 Aug 2024 18:15:29 GMT, Sonia Zaldana Calles wrote: > Hi all, > > This PR addresses [8338014](https://bugs.openjdk.org/browse/JDK-8338014) > improving the use of `@jvms` tags by adding `JVMS` prior to the tag. > > Thanks, > Sonia I think we can just make `{@jvms }` inline version

Re: RFR: 8336267: Method and Constructor signature parsing can be shared on the root object

2024-08-12 Thread Chen Liang
On Mon, 15 Jul 2024 04:05:55 GMT, Chen Liang wrote: > A straightforward optimization, to share the signature parsing of method, > constructor, and field between the root and the copied objects, like how > method handle accessors are shared. Yep, there's #19281 exactly for that purpose: https:

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v44]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: StringConcat1 - Changes: - all: https://gi

Re: RFR: 8332842: Optimize empty CopyOnWriteArrayList allocations [v4]

2024-08-12 Thread jengebr
On Thu, 20 Jun 2024 19:17:25 GMT, jengebr wrote: >> Improve `java/util/concurrent/CopyOnWriteArrayList` by eliminating needless >> cloning of Object[0] instances. This cloning is intended to prevent callers >> from changing array contents, but many `CopyOnWriteArrayList`s are allocated >> to s

Re: RFR: 8336856: Efficient hidden class-based string concatenation strategy [v43]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: Update src/java.base/share/classes/java/lang/StringConcatH

Re: RFR: 8315884: New Object to ObjectMonitor mapping [v11]

2024-08-12 Thread Coleen Phillimore
On Mon, 12 Aug 2024 15:58:14 GMT, Axel Boldt-Christmas wrote: >> When inflating a monitor the `ObjectMonitor*` is written directly over the >> `markWord` and any overwritten data is displaced into a displaced >> `markWord`. This is problematic for concurrent GCs which needs extra care or >> l

Re: RFR: 8338014: Improve usage of @jvms tags in class file API

2024-08-12 Thread Joe Darcy
On Mon, 12 Aug 2024 18:42:25 GMT, Joe Darcy wrote: >> Hi all, >> >> This PR addresses [8338014](https://bugs.openjdk.org/browse/JDK-8338014) >> improving the use of `@jvms` tags by adding `JVMS` prior to the tag. >> >> Thanks, >> Sonia > > Looks fine; increasing review count to also include

Re: RFR: 8336856: Optimize String Concat [v42]

2024-08-12 Thread Chen Liang
On Mon, 12 Aug 2024 17:44:50 GMT, Shaojin Wen wrote: >> This PR implements the same algorithm as the current generateMHInlineCopy >> based on bytecode to improve startup performance. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8336856: Optimize String Concat [v11]

2024-08-12 Thread Chen Liang
On Thu, 25 Jul 2024 00:43:09 GMT, Shaojin Wen wrote: >> The solution is to call `.erase()` on the input method handle, and call >> `viewAsType` on the result method handle. > > Sorry, I don't understand what you mean. The following code can't solve the > above build error > > > public static

Re: RFR: 8336856: Optimize String Concat [v41]

2024-08-12 Thread Chen Liang
On Mon, 12 Aug 2024 16:16:10 GMT, Shaojin Wen wrote: >> This PR implements the same algorithm as the current generateMHInlineCopy >> based on bytecode to improve startup performance. > > Shaojin Wen has updated the pull request incrementally with two additional > commits since the last revision

Re: RFR: 8338014: Improve usage of @jvms tags in class file API

2024-08-12 Thread Joe Darcy
On Mon, 12 Aug 2024 18:42:45 GMT, Chen Liang wrote: >> Hi all, >> >> This PR addresses [8338014](https://bugs.openjdk.org/browse/JDK-8338014) >> improving the use of `@jvms` tags by adding `JVMS` prior to the tag. >> >> Thanks, >> Sonia > > src/java.base/share/classes/java/lang/classfile/at

Re: RFR: 8338014: Improve usage of @jvms tags in class file API

2024-08-12 Thread Jonathan Gibbons
On Mon, 12 Aug 2024 18:42:25 GMT, Joe Darcy wrote: >> Hi all, >> >> This PR addresses [8338014](https://bugs.openjdk.org/browse/JDK-8338014) >> improving the use of `@jvms` tags by adding `JVMS` prior to the tag. >> >> Thanks, >> Sonia > > Looks fine; increasing review count to also include

Re: RFR: 8336856: Optimize String Concat [v42]

2024-08-12 Thread Claes Redestad
On Mon, 12 Aug 2024 18:35:45 GMT, Shaojin Wen wrote: > Should we change the title of the PR to `Implementing an efficient string > concatenation hidden class strategy based on ClassFile API`? Yes, or something shorter like `"8336856: Efficient hidden class-based string concatenation strategy"`

Re: RFR: 8322420: [Linux] cgroup v2: Limits in parent nested control groups are not detected [v19]

2024-08-12 Thread Severin Gehwolf
On Tue, 30 Jul 2024 07:47:55 GMT, Jan Kratochvil wrote: >> The testcase requires root permissions. >> >> Fix by Severin Gehwolf. >> Testcase by Jan Kratochvil. > > Jan Kratochvil has updated the pull request incrementally with two additional > commits since the last revision: > > - Inline a

Re: RFR: 8338014: Improve usage of @jvms tags in class file API

2024-08-12 Thread Chen Liang
On Thu, 8 Aug 2024 18:15:29 GMT, Sonia Zaldana Calles wrote: > Hi all, > > This PR addresses [8338014](https://bugs.openjdk.org/browse/JDK-8338014) > improving the use of `@jvms` tags by adding `JVMS` prior to the tag. > > Thanks, > Sonia Changes requested by liach (Reviewer). src/java.b

Re: RFR: 8338014: Improve usage of @jvms tags in class file API

2024-08-12 Thread Joe Darcy
On Thu, 8 Aug 2024 18:15:29 GMT, Sonia Zaldana Calles wrote: > Hi all, > > This PR addresses [8338014](https://bugs.openjdk.org/browse/JDK-8338014) > improving the use of `@jvms` tags by adding `JVMS` prior to the tag. > > Thanks, > Sonia Looks fine; increasing review count to also includ

Re: RFR: 8336856: Optimize String Concat [v42]

2024-08-12 Thread Shaojin Wen
On Mon, 12 Aug 2024 17:44:50 GMT, Shaojin Wen wrote: >> This PR implements the same algorithm as the current generateMHInlineCopy >> based on bytecode to improve startup performance. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision:

RFR: 8338014: Improve usage of @jvms tags in class file API

2024-08-12 Thread Sonia Zaldana Calles
Hi all, This PR addresses [8338014](https://bugs.openjdk.org/browse/JDK-8338014) improving the use of `@jvms` tags by adding `JVMS` prior to the tag. Thanks, Sonia - Commit messages: - Merge branch 'openjdk:master' into JDK-8338014 - Copyright update - 8338014: Improve usage

Re: RFR: 8333796: Add missing serialization functionality to sun.reflect.ReflectionFactory

2024-08-12 Thread Roger Riggs
On Thu, 13 Jun 2024 14:31:06 GMT, David M. Lloyd wrote: > Issue [JDK-8164908](https://bugs.openjdk.org/browse/JDK-8164908) added > support for functionality required to continue to support IIOP and custom > serializers in light of additional module-based restrictions on reflection. > It was ex

Re: RFR: 8336856: Optimize String Concat [v42]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: fix comments - Changes: - all: https://git

Re: RFR: 8336856: Optimize String Concat [v41]

2024-08-12 Thread Claes Redestad
On Mon, 12 Aug 2024 16:16:10 GMT, Shaojin Wen wrote: >> This PR implements the same algorithm as the current generateMHInlineCopy >> based on bytecode to improve startup performance. > > Shaojin Wen has updated the pull request incrementally with two additional > commits since the last revision

Re: RFR: 8336856: Optimize String Concat [v39]

2024-08-12 Thread Claes Redestad
On Mon, 12 Aug 2024 16:52:53 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/java/lang/StringConcatHelper.java line 83: >> >>> 81: >>> 82: @ForceInline >>> 83: private final String concat(char value) { >> >> These mostly help avoid a bit of class spinning on startup, rig

Re: RFR: 8337143: (fc, fs) Move filesystem-related native objects from libnio to libjava [v5]

2024-08-12 Thread Brian Burkhalter
On Mon, 12 Aug 2024 15:46:13 GMT, Alan Bateman wrote: > please do not integrate this change until I get time Sure, of course I will not. Thanks to @magicus and @dfuch for helping to make it better. - PR Comment: https://git.openjdk.org/jdk/pull/20317#issuecomment-2284529067

RFR: 8338146: Improve Exchanger performance with VirtualThreads

2024-08-12 Thread Doug Lea
The Exchanger class uses spin-waits that are hostile to some uses of VirtualThreads. Improving this requires a means of estimating whether there are many VirtualThreads with few carriers, which can be supported by adding a method in class ForkJoinWorkerThread. This enables a reworking of the exc

Re: RFR: 8336856: Optimize String Concat [v39]

2024-08-12 Thread Shaojin Wen
On Mon, 12 Aug 2024 14:47:13 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix comments > > src/java.base/share/classes/java/lang/StringConcatHelper.java line 83: > >> 81: >> 82: @For

Re: RFR: 8338060: jdk/internal/util/ReferencedKeyTest should be more robust

2024-08-12 Thread Tom Rodriguez
On Fri, 9 Aug 2024 15:54:51 GMT, Roger Riggs wrote: > Addressing latent issues with ReferencedKeyTest > - During the `methods()` tests the keys should be strongly held to avoid > inadvertent GC collection and subsequent test failures (JDK-8336926) > - Merge changes from Valhalla to use String (i

Re: RFR: 8336856: Optimize String Concat [v41]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with two additional commits since the last revision: - fix comments - remove unused code - Chang

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors [v2]

2024-08-12 Thread Viktor Klang
On Mon, 12 Aug 2024 16:08:31 GMT, Viktor Klang wrote: >> 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when >> failing due to a LinkageError or other errors > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors [v2]

2024-08-12 Thread Viktor Klang
> 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when > failing due to a LinkageError or other errors Viktor Klang has updated the pull request incrementally with one additional commit since the last revision: Catching both Error and RuntimeException - Changes

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors

2024-08-12 Thread Viktor Klang
On Mon, 12 Aug 2024 15:57:42 GMT, Alan Bateman wrote: >> Or use (Error | RuntimeException ex)? > > That would be okay too as there are no checked exceptions here. @AlanBateman If we really want it airtight I think we need to catch Throwable and sneaky-rethrow it? 🤔 - PR Review Com

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors

2024-08-12 Thread Alan Bateman
On Mon, 12 Aug 2024 15:28:47 GMT, Doug Lea wrote: >> src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java >> line 381: >> >>> 379: else >>> 380: break; >>> 381: } catch (Error ex) {// r

Re: RFR: 8315884: New Object to ObjectMonitor mapping [v11]

2024-08-12 Thread Axel Boldt-Christmas
> When inflating a monitor the `ObjectMonitor*` is written directly over the > `markWord` and any overwritten data is displaced into a displaced `markWord`. > This is problematic for concurrent GCs which needs extra care or looser > semantics to use this displaced data. In Lilliput this data als

Re: RFR: 8336856: Optimize String Concat [v40]

2024-08-12 Thread Shaojin Wen
> This PR implements the same algorithm as the current generateMHInlineCopy > based on bytecode to improve startup performance. Shaojin Wen has updated the pull request incrementally with four additional commits since the last revision: - Update src/java.base/share/classes/java/lang/invoke/Str

Re: RFR: 8337143: (fc, fs) Move filesystem-related native objects from libnio to libjava [v5]

2024-08-12 Thread Alan Bateman
On Fri, 9 Aug 2024 17:59:12 GMT, Brian Burkhalter wrote: >> This proposed change would move the native objects required for NIO file >> interaction from the libnio native library to the libjava native library on >> Linux, macOS, and Windows. > > Brian Burkhalter has updated the pull request inc

Re: RFR: 8337143: (fc, fs) Move filesystem-related native objects from libnio to libjava [v5]

2024-08-12 Thread Magnus Ihse Bursie
On Fri, 9 Aug 2024 17:59:12 GMT, Brian Burkhalter wrote: >> This proposed change would move the native objects required for NIO file >> interaction from the libnio native library to the libjava native library on >> Linux, macOS, and Windows. > > Brian Burkhalter has updated the pull request inc

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors

2024-08-12 Thread Doug Lea
On Mon, 12 Aug 2024 14:02:52 GMT, Alan Bateman wrote: >> 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when >> failing due to a LinkageError or other errors > > src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java > line 381: > >> 379:

Re: RFR: 8336856: Optimize String Concat [v39]

2024-08-12 Thread Claes Redestad
On Thu, 8 Aug 2024 11:43:07 GMT, Shaojin Wen wrote: >> This PR implements the same algorithm as the current generateMHInlineCopy >> based on bytecode to improve startup performance. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8337143: (fc, fs) Move filesystem-related native objects from libnio to libjava [v5]

2024-08-12 Thread Daniel Fuchs
On Fri, 9 Aug 2024 17:59:12 GMT, Brian Burkhalter wrote: >> This proposed change would move the native objects required for NIO file >> interaction from the libnio native library to the libjava native library on >> Linux, macOS, and Windows. > > Brian Burkhalter has updated the pull request inc

Re: RFR: 8335927: Revisit AnnotationConstantValueEntry and AnnotationValue.OfConstant [v5]

2024-08-12 Thread Adam Sotona
On Fri, 2 Aug 2024 16:31:48 GMT, Chen Liang wrote: >> 1. Add notes and docs about the difference between resolved constants and >> constant pool descriptors for annotation constants (e.g. `char` vs >> `IntegerEntry`) >> 2. Improved value specification to specify their tags. >> 3. Improved value

Re: RFR: 8336856: Optimize String Concat [v39]

2024-08-12 Thread Claes Redestad
On Thu, 8 Aug 2024 11:43:07 GMT, Shaojin Wen wrote: >> This PR implements the same algorithm as the current generateMHInlineCopy >> based on bytecode to improve startup performance. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8315884: New Object to ObjectMonitor mapping [v6]

2024-08-12 Thread Axel Boldt-Christmas
On Mon, 15 Jul 2024 00:45:25 GMT, Axel Boldt-Christmas wrote: >> src/hotspot/share/runtime/lightweightSynchronizer.cpp line 477: >> >>> 475: if (obj->mark_acquire().has_monitor()) { >>> 476: if (_length > 0 && _contended_oops[_length-1] == obj) { >>> 477: // >>> assert(VM_Ver

Re: RFR: 8315884: New Object to ObjectMonitor mapping [v6]

2024-08-12 Thread Axel Boldt-Christmas
On Tue, 23 Jul 2024 16:44:06 GMT, Coleen Phillimore wrote: >> I wanted to avoid having to add `NoSafepointVerifier` implementation details >> in the synchroniser code. I guess `ContinuationWrapper` already does this. >> >> Simply creating a `NoSafepointVerifier` when you expect no safepoint is

Re: RFR: 8315884: New Object to ObjectMonitor mapping [v9]

2024-08-12 Thread Axel Boldt-Christmas
On Wed, 17 Jul 2024 06:48:03 GMT, David Holmes wrote: >> Axel Boldt-Christmas has updated the pull request incrementally with 10 >> additional commits since the last revision: >> >> - Remove try_read >> - Add explicit to single parameter constructors >> - Remove superfluous access specifier

Re: RFR: 8315884: New Object to ObjectMonitor mapping [v10]

2024-08-12 Thread Axel Boldt-Christmas
> When inflating a monitor the `ObjectMonitor*` is written directly over the > `markWord` and any overwritten data is displaced into a displaced `markWord`. > This is problematic for concurrent GCs which needs extra care or looser > semantics to use this displaced data. In Lilliput this data als

Re: RFR: 8315884: New Object to ObjectMonitor mapping [v9]

2024-08-12 Thread Axel Boldt-Christmas
On Tue, 23 Jul 2024 13:20:27 GMT, Coleen Phillimore wrote: >> src/hotspot/share/runtime/lightweightSynchronizer.cpp line 77: >> >>> 75: using ConcurrentTable = ConcurrentHashTable>> MEMFLAGS::mtObjectMonitor>; >>> 76: >>> 77: ConcurrentTable* _table; >> >> So you have a class ObjectMonitor

Re: RFR: 8336267: Method and Constructor signature parsing can be shared on the root object

2024-08-12 Thread Claes Redestad
On Mon, 15 Jul 2024 04:05:55 GMT, Chen Liang wrote: > A straightforward optimization, to share the signature parsing of method, > constructor, and field between the root and the copied objects, like how > method handle accessors are shared. There are a lot of transient volatile fields in this

Re: RFR: 8311302: Allow for jlinking a custom runtime without packaged modules being present [v33]

2024-08-12 Thread Severin Gehwolf
On Mon, 24 Jun 2024 14:33:51 GMT, Severin Gehwolf wrote: >> Please review this patch which adds a jlink mode to the JDK which doesn't >> need the packaged modules being present. A.k.a run-time image based jlink. >> Fundamentally this patch adds an option to use `jlink` even though your JDK >>

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors

2024-08-12 Thread Alan Bateman
On Mon, 12 Aug 2024 13:41:24 GMT, Viktor Klang wrote: > 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when > failing due to a LinkageError or other errors src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java line 381: > 379:

Re: RFR: 8337302: Undefined type variable results in null [v2]

2024-08-12 Thread Chen Liang
On Mon, 12 Aug 2024 07:31:09 GMT, Rafael Winterhalter wrote: >> When a type uses a type variable without a declaration, no exception is >> thrown. This change triggers a `TypeNotFoundException` to be thrown. > > Rafael Winterhalter has refreshed the contents of this pull request, and > previou

Re: RFR: 8336267: Method and Constructor signature parsing can be shared on the root object

2024-08-12 Thread Chen Liang
On Mon, 15 Jul 2024 04:05:55 GMT, Chen Liang wrote: > A straightforward optimization, to share the signature parsing of method, > constructor, and field between the root and the copied objects, like how > method handle accessors are shared. Keep alive. - PR Comment: https://git.o

Re: RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors

2024-08-12 Thread Viktor Klang
On Mon, 12 Aug 2024 13:41:24 GMT, Viktor Klang wrote: > 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when > failing due to a LinkageError or other errors @DougLea @AlanBateman FYI - PR Comment: https://git.openjdk.org/jdk/pull/20548#issuecomment-2284029040

RFR: 8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors

2024-08-12 Thread Viktor Klang
8336384: AbstractQueuedSynchronizer.acquire should cancel acquire when failing due to a LinkageError or other errors - Commit messages: - Improve resilience of AQS and AQLS acquire in the face of errors Changes: https://git.openjdk.org/jdk/pull/20548/files Webrev: https://webrevs

Re: RFR: 8333446: Add tests for hierarchical container support [v4]

2024-08-12 Thread Severin Gehwolf
On Thu, 11 Jul 2024 16:46:13 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: Negation of a regular expression in a Pattern

2024-08-12 Thread Raffaello Giulietti
I'm not sure what's unclear in "any character except a, b, or c" or "any character except one in the Greek block". A line terminator is neither 'a' nor 'b' nor 'c', nor is it in the Greek block. Your example works the same in JDK 8, 11, 17, 21, 22, with or without the additional MULTILINE or D

Re: RFR: 8307818: Convert Indify tool to Classfile API [v17]

2024-08-12 Thread Oussama Louati
> An indify tool in j.l.i tests (also in vmTestBase) convert some source-code > private static methods with MT_ MH_, and INDY_ prefixes into MethodHandle, > MethodType, and CallSite constants. > ### Purpose of Indify > > - **Transformation Tool**: `Indify` transforms existing class files to >

Re: RFR: 8337302: Undefined type variable results in null [v2]

2024-08-12 Thread Rafael Winterhalter
> When a type uses a type variable without a declaration, no exception is > thrown. This change triggers a `TypeNotFoundException` to be thrown. Rafael Winterhalter has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show difference