Re: RFR: 8294977: Convert test/jdk/java tests from ASM library to Classfile API [v8]

2023-05-08 Thread Chen Liang
> Summaries: > 1. A few recommendations about updating the constant API is made at > https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000233.html > and I may update this patch shall the API changes be integrated before > 2. One ASM library-specific test, `LambdaAsm` is removed.

Re: RFR: 8307483: New micros for j.u.c.LockSupport

2023-05-08 Thread David Holmes
On Mon, 8 May 2023 10:01:49 GMT, Viktor Klang wrote: >> Same as we saw with `isAlive` before: `LockSupport.park` implicitly provides >> a compiler barrier. This `done` should be at least "opaque" to carry the >> same effect. > > Yes, `park()` and `unpark()` having release and acquire semantics

Re: RFR: 8307483: New micros for j.u.c.LockSupport

2023-05-08 Thread David Holmes
On Tue, 9 May 2023 02:23:51 GMT, David Holmes wrote: >> Yes, `park()` and `unpark()` having release and acquire semantics is not >> documented >> [here](https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/util/concurrent/locks/LockSupport.html#park()), >> and the documentation

Re: RFR: 8305734: BitSet.get(int, int) always returns the empty BitSet when the Integer.MAX VALUE is set

2023-05-08 Thread Stuart Marks
On Fri, 7 Apr 2023 12:22:03 GMT, Andy-Tatman wrote: > See https://bugs.java.com/bugdatabase/view_bug?bug_id=8305734 Re disallowing bit Integer.MAX_VALUE: I have a feeling we can do better than this. The first paragraph of the spec states: "The bits of a BitSet are indexed by nonnegative

RFR: 8307486: ProcessTools.java should wait until vthread is completed before checking exceptions

2023-05-08 Thread Leonid Mesnik
Updated processtools to check exception after join(). Tested with running CI virtual thread tests. - Commit messages: - 8307486: ProcessTools.java should wait until vthread is completed before checking exceptions Changes: https://git.openjdk.org/jdk/pull/13873/files Webrev:

Re: RFR: 8305734: BitSet.get(int, int) always returns the empty BitSet when the Integer.MAX VALUE is set

2023-05-08 Thread Stuart Marks
On Fri, 7 Apr 2023 12:22:03 GMT, Andy-Tatman wrote: > See https://bugs.java.com/bugdatabase/view_bug?bug_id=8305734 Further notes on `size()`. See this comment in

Re: RFR: JDK-8133773: clarify specification of Spliterator.tryAdvance [v2]

2023-05-08 Thread Roger Riggs
On Mon, 8 May 2023 19:07:17 GMT, Viktor Klang wrote: >> Attempting to make the "at-most once" nature, of invoking the supplied >> action to tryAdvance, clearer in the JavaDoc. > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8307194: Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries [v7]

2023-05-08 Thread Jiangli Zhou
On Fri, 5 May 2023 20:43:41 GMT, Erik Joelsson wrote: > Further I would like to suggest that libjvm.a gets put in the variant subdir > under lib, just like libjvm.so does today (e.g. `lib/server/libjvm.a`). That > way you can support building libjvm.a for all variants without worry. It will >

Re: RFR: JDK-8133773: clarify specification of Spliterator.tryAdvance [v2]

2023-05-08 Thread Tagir F . Valeev
On Mon, 8 May 2023 19:07:17 GMT, Viktor Klang wrote: >> Attempting to make the "at-most once" nature, of invoking the supplied >> action to tryAdvance, clearer in the JavaDoc. > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: JDK-8133773: clarify specification of Spliterator.tryAdvance [v2]

2023-05-08 Thread Paul Sandoz
On Mon, 8 May 2023 19:07:17 GMT, Viktor Klang wrote: >> Attempting to make the "at-most once" nature, of invoking the supplied >> action to tryAdvance, clearer in the JavaDoc. > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8307466: java.time.Instant calculation bug in until and between methods [v2]

2023-05-08 Thread Roger Riggs
On Mon, 8 May 2023 19:05:43 GMT, Raffaello Giulietti wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Slight perf improvement using int instead of long for local nanosDiff > > I think that the explanation of the

Re: RFR: 8307194: Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries [v7]

2023-05-08 Thread Jiangli Zhou
On Mon, 8 May 2023 08:57:37 GMT, Severin Gehwolf wrote: > > All of that said, I think we can get away with a smaller subset of targets > > and deliverables. AFAIK, graal needs the combined `graal-builder-image` as > > input to their build anyway, so they should not have any dependency on what

Re: RFR: 8159337: Introduce a method in Locale class to return the language tags as per RFC 5646 convention [v7]

2023-05-08 Thread Justin Lu
> Please review this PR which adds the method `caseFoldLanguageTag(String > languageTag)` to java.util.Locale. > > This method case folds a language tag to adhere to _[section 2.1.1. > Formatting of Language Tags of > RFC5646](https://www.rfc-editor.org/rfc/rfc5646.html#section-2.1)_. This >

Re: RFR: JDK-8285932 Implementation of JEP 430 String Templates (Preview) [v66]

2023-05-08 Thread Jim Laskey
> Enhance the Java programming language with string templates, which are > similar to string literals but contain embedded expressions. A string > template is interpreted at run time by replacing each expression with the > result of evaluating that expression, possibly after further validation

Re: RFR: 8307466: java.time.Instant calculation bug in until and between methods [v2]

2023-05-08 Thread Raffaello Giulietti
On Sun, 7 May 2023 17:58:26 GMT, Roger Riggs wrote: >> The implementation of java.time.Instant.until(I2, ChronoUnit) in some cases >> did not correctly borrow or carry from the nanos to the seconds when >> computing using ChronoUnit.MILLIS or ChronoUnit.MICROS. >> The errant computation was

Re: RFR: JDK-8133773: clarify specification of Spliterator.tryAdvance

2023-05-08 Thread Viktor Klang
On Mon, 8 May 2023 10:32:48 GMT, Viktor Klang wrote: > Attempting to make the "at-most once" nature, of invoking the supplied action > to tryAdvance, clearer in the JavaDoc. @PaulSandoz Great suggestion, thank you Paul! - PR Comment:

Re: RFR: JDK-8133773: clarify specification of Spliterator.tryAdvance [v2]

2023-05-08 Thread Viktor Klang
> Attempting to make the "at-most once" nature, of invoking the supplied action > to tryAdvance, clearer in the JavaDoc. Viktor Klang has updated the pull request incrementally with one additional commit since the last revision: Update src/java.base/share/classes/java/util/Spliterator.java

Re: RFR: JDK-8133773: clarify specification of Spliterator.tryAdvance

2023-05-08 Thread Paul Sandoz
On Mon, 8 May 2023 10:32:48 GMT, Viktor Klang wrote: > Attempting to make the "at-most once" nature, of invoking the supplied action > to tryAdvance, clearer in the JavaDoc. src/java.base/share/classes/java/util/Spliterator.java line 307: > 305: * an exception. > 306: * > 307:

Re: RFR: 8307466: java.time.Instant calculation bug in until and between methods [v2]

2023-05-08 Thread Roger Riggs
On Sun, 7 May 2023 17:58:26 GMT, Roger Riggs wrote: >> The implementation of java.time.Instant.until(I2, ChronoUnit) in some cases >> did not correctly borrow or carry from the nanos to the seconds when >> computing using ChronoUnit.MILLIS or ChronoUnit.MICROS. >> The errant computation was

Re: RFR: 8307629: FunctionDescriptor::toMethodType should allow sequence layouts (mainline)

2023-05-08 Thread Jorn Vernee
On Mon, 8 May 2023 16:10:37 GMT, Maurizio Cimadamore wrote: > This is a port of: https://git.openjdk.org/panama-foreign/pull/830 (already reviewed in the panama-foreign repo) - Marked as reviewed by jvernee (Reviewer). PR Review:

RFR: 8307629: FunctionDescriptor::toMethodType should allow sequence layouts (mainline)

2023-05-08 Thread Maurizio Cimadamore
This is a port of: https://git.openjdk.org/panama-foreign/pull/830 - Commit messages: - Initial push Changes: https://git.openjdk.org/jdk/pull/13869/files Webrev: https://webrevs.openjdk.org/?repo=jdk=13869=00 Issue: https://bugs.openjdk.org/browse/JDK-8307629 Stats: 75 lines

Re: RFR: 8307411: Test java/foreign/channels/TestAsyncSocketChannels.java failed: IllegalStateException: Already closed

2023-05-08 Thread Jorn Vernee
On Mon, 8 May 2023 13:46:55 GMT, Maurizio Cimadamore wrote: > This is a tricky intermittent failure on one of our async file channel test. > > While the logic of the test is a bit hard to follow, I believe the test is > supposed to work as follows: > > * in the main thread, we submit an

Re: RFR: 8307466: java.time.Instant calculation bug in until and between methods [v2]

2023-05-08 Thread Naoto Sato
On Sun, 7 May 2023 17:58:26 GMT, Roger Riggs wrote: >> The implementation of java.time.Instant.until(I2, ChronoUnit) in some cases >> did not correctly borrow or carry from the nanos to the seconds when >> computing using ChronoUnit.MILLIS or ChronoUnit.MICROS. >> The errant computation was

Re: RFR: 8307615: Linker::nativeLinker should not be restricted (mainline) [v2]

2023-05-08 Thread Jorn Vernee
On Mon, 8 May 2023 14:23:10 GMT, Maurizio Cimadamore wrote: >> Port of: https://git.openjdk.org/panama-foreign/pull/831 > > Maurizio Cimadamore has updated the pull request incrementally with one > additional commit since the last revision: > > Address review comment Marked as reviewed by

Re: RFR: 8302845: Replace finalizer usage in JNDI DNS provider with Cleaner [v3]

2023-05-08 Thread Aleksei Efimov
> JNDI `DnsClient` has a finalize method to close its internal datagram channel > selector. > The change proposed here replaces it with a cleaner to close the selector > once the `DnsClient` > instance becomes phantom reachable. > > The change was tested with `jdk-tier1` to `jdk-tier3` test

Re: RFR: 8302845: Replace finalizer usage in JNDI DNS provider with Cleaner [v2]

2023-05-08 Thread Aleksei Efimov
On Sat, 6 May 2023 12:47:21 GMT, Alan Bateman wrote: >> src/jdk.naming.dns/share/classes/com/sun/jndi/dns/DnsClient.java line 165: >> >>> 163: // when this DNS client becomes phantom reachable >>> 164: Selector sel = udpChannelSelector; >>> 165:

Integrated: 8306461: ObjectInputStream::readObject() should handle negative array sizes without throwing NegativeArraySizeExceptions

2023-05-08 Thread Volker Simonis
On Wed, 19 Apr 2023 16:47:33 GMT, Volker Simonis wrote: > This issue was reported by: Yakov Shafranovich > ([yako...@amazon.com](mailto:yako...@amazon.com)) > > Currently, `ObjectInputStream::readObject()` doesn't explicitly checks for a > negative array length in the deserialization stream.

Integrated: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern

2023-05-08 Thread Raffaello Giulietti
On Mon, 3 Apr 2023 17:43:55 GMT, Raffaello Giulietti wrote: > Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in > addition to the substrings returned by current `split()` variants, also > return the delimiters matching the regular expression. This pull request has

Re: RFR: 8304913: Use OperatingSystem, Architecture, and Version in jlink [v4]

2023-05-08 Thread Roger Riggs
> Refactor the Platform class of jlink to use jdk.internal.util OperatingSystem > and Architecture instead of os.name and os.arch. > They are direct replacements for the Platform enums except for UNKNOWN; its > use is refactored to report errors via exceptions. > > Neither os.name nor os.arch

Re: RFR: 8307615: Linker::nativeLinker should not be restricted (mainline) [v2]

2023-05-08 Thread Maurizio Cimadamore
> Port of: https://git.openjdk.org/panama-foreign/pull/831 Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision: Address review comment - Changes: - all: https://git.openjdk.org/jdk/pull/13863/files - new:

Re: RFR: 8307615: Linker::nativeLinker should not be restricted (mainline) [v2]

2023-05-08 Thread Maurizio Cimadamore
On Mon, 8 May 2023 12:17:44 GMT, Jorn Vernee wrote: >> Maurizio Cimadamore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Address review comment > > src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java line > 78: >

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v6]

2023-05-08 Thread Jaikiran Pai
On Mon, 8 May 2023 14:04:27 GMT, Raffaello Giulietti wrote: >> Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in >> addition to the substrings returned by current `split()` variants, also >> return the delimiters matching the regular expression. > > Raffaello

Re: RFR: 6983726: Reimplement MethodHandleProxies.asInterfaceInstance [v16]

2023-05-08 Thread Rémi Forax
On Mon, 8 May 2023 10:46:34 GMT, Maurizio Cimadamore wrote: >> src/java.base/share/classes/java/lang/invoke/MethodHandleProxies.java line >> 342: >> >>> 340: >>> 341: // individual handle fields >>> 342: clb.withField(ORIGINAL_TARGET_NAME, CD_MethodHandle, >>>

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v6]

2023-05-08 Thread Roger Riggs
On Mon, 8 May 2023 14:04:27 GMT, Raffaello Giulietti wrote: >> Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in >> addition to the substrings returned by current `split()` variants, also >> return the delimiters matching the regular expression. > > Raffaello

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Raffaello Giulietti
On Mon, 8 May 2023 13:50:19 GMT, Roger Riggs wrote: >> I would replace center-dot with either with "times" or "*" as being easier >> to read and more familiar in the javadoc. > > In java.lang.Math I see both "*" and "" used to indicate > multiplication. Just replaced with ``, as used in the

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v6]

2023-05-08 Thread Raffaello Giulietti
> Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in > addition to the substrings returned by current `split()` variants, also > return the delimiters matching the regular expression. Raffaello Giulietti has updated the pull request incrementally with one additional

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Roger Riggs
On Mon, 8 May 2023 13:45:53 GMT, Roger Riggs wrote: >> I mean the usual juxtaposition in maths to signify multiplication, like in >> _a_ _b_ instead of _a_·_b_ >> >>> the array's length will be no greater than 2 _limit_ - 1 > > I would replace center-dot with either with "times" or "*" as

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Roger Riggs
On Mon, 8 May 2023 12:30:45 GMT, Raffaello Giulietti wrote: >>> Alternatively, one could remove the multiplication sign altogether... >> >> Do you mean rewording it to something like: >> >>> the array's length will be no greater than 2 times limit - 1 > > I mean the usual juxtaposition in

Re: RFR: 8305950: Have -XshowSettings option display tzdata version

2023-05-08 Thread Roger Riggs
On Mon, 8 May 2023 13:14:34 GMT, Sean Coffey wrote: > minor enhancement to have -XshowSettings launcher option display the version > of tzdata installed in the JDK > > example output of the new tzdata info : > > > > Locale settings: > default locale = English > default display

Re: RFR: 8306461: ObjectInputStream::readObject() should handle negative array sizes without throwing NegativeArraySizeExceptions [v6]

2023-05-08 Thread Roger Riggs
On Tue, 2 May 2023 18:02:41 GMT, Volker Simonis wrote: >> This issue was reported by: Yakov Shafranovich >> ([yako...@amazon.com](mailto:yako...@amazon.com)) >> >> Currently, `ObjectInputStream::readObject()` doesn't explicitly checks for a >> negative array length in the deserialization

Re: RFR: 8306461: ObjectInputStream::readObject() should handle negative array sizes without throwing NegativeArraySizeExceptions [v6]

2023-05-08 Thread Volker Simonis
On Tue, 2 May 2023 18:02:41 GMT, Volker Simonis wrote: >> This issue was reported by: Yakov Shafranovich >> ([yako...@amazon.com](mailto:yako...@amazon.com)) >> >> Currently, `ObjectInputStream::readObject()` doesn't explicitly checks for a >> negative array length in the deserialization

RFR: 8305950: Have -XshowSettings option display tzdata version

2023-05-08 Thread Sean Coffey
minor enhancement to have -XshowSettings launcher option display the version of tzdata installed in the JDK example output of the new tzdata info : Locale settings: default locale = English default display locale = English default format locale = English tzdata version =

Re: RFR: JDK-8285932 Implementation of JEP 430 String Templates (Preview) [v65]

2023-05-08 Thread Jim Laskey
On Sat, 6 May 2023 02:53:49 GMT, Joe Darcy wrote: >> Jim Laskey has updated the pull request incrementally with one additional >> commit since the last revision: >> >> CSR recommendations > > src/java.base/share/classes/java/lang/StringTemplate.java line 427: > >> 425: * {@link

Re: RFR: JDK-8285932 Implementation of JEP 430 String Templates (Preview) [v65]

2023-05-08 Thread Jim Laskey
On Sat, 6 May 2023 02:42:14 GMT, Joe Darcy wrote: >> Jim Laskey has updated the pull request incrementally with one additional >> commit since the last revision: >> >> CSR recommendations > > src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java line > 123: > >> 121:

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Raffaello Giulietti
On Mon, 8 May 2023 12:23:27 GMT, Jaikiran Pai wrote: >>> I could replace it by the equivalent `` >> >> I just locally used this as a replacement to `centerdot` and regenerated the >> javadocs. The generated javadoc HTML looks the same like the screenshot in >> my previous comment. >> >> My

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Jaikiran Pai
On Mon, 8 May 2023 12:20:25 GMT, Jaikiran Pai wrote: >> Alternatively, one could remove the multiplication sign altogether... > >> I could replace it by the equivalent `` > > I just locally used this as a replacement to `centerdot` and regenerated the > javadocs. The generated javadoc HTML

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Jaikiran Pai
On Mon, 8 May 2023 12:15:57 GMT, Raffaello Giulietti wrote: >> The HTML named entity `` is rendered correctly by the javadoc >> tool. However, IntelliJ IDEA currently does not recognize it >> (https://youtrack.jetbrains.com/issue/IDEA-316843). I could replace it by >> the equivalent ``,

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Jaikiran Pai
On Mon, 24 Apr 2023 12:18:55 GMT, Raffaello Giulietti wrote: >> Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in >> addition to the substrings returned by current `split()` variants, also >> return the delimiters matching the regular expression. > > Raffaello

Re: RFR: 8307615: Linker::nativeLinker should not be restricted (mainline)

2023-05-08 Thread Jorn Vernee
On Mon, 8 May 2023 11:10:36 GMT, Maurizio Cimadamore wrote: > Port of: https://git.openjdk.org/panama-foreign/pull/831 src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java line 78: > 76: SharedUtils.checkSymbol(symbol); > 77: return

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Raffaello Giulietti
On Mon, 8 May 2023 12:08:06 GMT, Raffaello Giulietti wrote: >> src/java.base/share/classes/java/lang/String.java line 3254: >> >>> 3252: * If the limit is positive then the pattern will >>> be applied >>> 3253: *at most limit-1 times, the array's >>> length will be >>>

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Jaikiran Pai
On Mon, 24 Apr 2023 12:18:55 GMT, Raffaello Giulietti wrote: >> Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in >> addition to the substrings returned by current `split()` variants, also >> return the delimiters matching the regular expression. > > Raffaello

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Raffaello Giulietti
On Mon, 8 May 2023 11:55:05 GMT, Jaikiran Pai wrote: >> Raffaello Giulietti has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Small optimization in private split(). >> Added tests to compare String and Pattern implementations, in

Re: RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]

2023-05-08 Thread Jaikiran Pai
On Mon, 24 Apr 2023 12:18:55 GMT, Raffaello Giulietti wrote: >> Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in >> addition to the substrings returned by current `split()` variants, also >> return the delimiters matching the regular expression. > > Raffaello

RFR: 8307615: Linker::nativeLinker should not be restricted (mainline)

2023-05-08 Thread Maurizio Cimadamore
Port of: https://git.openjdk.org/panama-foreign/pull/831 - Commit messages: - Cleanup code so that restricted method check is shared - Initial push Changes: https://git.openjdk.org/jdk/pull/13863/files Webrev: https://webrevs.openjdk.org/?repo=jdk=13863=00 Issue:

Re: RFR: 8307615: Linker::nativeLinker should not be restricted (mainline)

2023-05-08 Thread Maurizio Cimadamore
On Mon, 8 May 2023 11:10:36 GMT, Maurizio Cimadamore wrote: > Port of: https://git.openjdk.org/panama-foreign/pull/831 src/java.base/share/classes/jdk/internal/foreign/abi/AbstractLinker.java line 86: > 84: } > 85: > 86: private final MethodHandle downcallHandle0(Class callerClass,

Re: RFR: 6983726: Reimplement MethodHandleProxies.asInterfaceInstance [v16]

2023-05-08 Thread Maurizio Cimadamore
On Mon, 8 May 2023 09:32:31 GMT, Maurizio Cimadamore wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove assertion, no longer true with teleport definition in MHP > >

RFR: JDK-8133773: clarify specification of Spliterator.tryAdvance

2023-05-08 Thread Viktor Klang
Attempting to make the "at-most once" nature, of invoking the supplied action to tryAdvance, clearer in the JavaDoc. - Commit messages: - JDK-8133773: clarify specification of Spliterator.tryAdvance Changes: https://git.openjdk.org/jdk/pull/13860/files Webrev:

Re: RFR: 8307483: New micros for j.u.c.LockSupport

2023-05-08 Thread Viktor Klang
On Mon, 8 May 2023 09:21:54 GMT, Aleksey Shipilev wrote: >> Yes `done` must be volatile. Surprised this even worked as expected. > > Same as we saw with `isAlive` before: `LockSupport.park` implicitly provides > a compiler barrier. This `done` should be at least "opaque" to carry the same >

Re: RFR: 6983726: Reimplement MethodHandleProxies.asInterfaceInstance [v16]

2023-05-08 Thread Maurizio Cimadamore
On Sun, 7 May 2023 13:34:54 GMT, Chen Liang wrote: >> As John Rose has pointed out in this issue, the current j.l.r.Proxy based >> implementation of MethodHandleProxies.asInterface has a few issues: >> 1. Exposes too much information via Proxy supertype (and WrapperInstance >> interface) >> 2.

Re: RFR: 8307483: New micros for j.u.c.LockSupport

2023-05-08 Thread Aleksey Shipilev
On Mon, 8 May 2023 05:58:26 GMT, David Holmes wrote: >> test/micro/org/openjdk/bench/java/util/concurrent/UnparkBenchSleepersAfter.java >> line 131: >> >>> 129: public void run() { >>> 130: my_thread = Thread.currentThread(); >>> 131: while (!done) { >> >> You

Re: RFR: 8307483: New micros for j.u.c.LockSupport

2023-05-08 Thread Aleksey Shipilev
On Thu, 4 May 2023 20:17:11 GMT, Eric Caspole wrote: > These micros were developed while investigating JDK-8305670 by myself and > Sergey Kuksenko. The order of thread creation was important in that bug, so > there are 2 JMH for creating sleepers before and after the worker threads. Cursory

Re: RFR: 8307194: Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries [v7]

2023-05-08 Thread Severin Gehwolf
On Fri, 5 May 2023 20:43:41 GMT, Erik Joelsson wrote: > All of that said, I think we can get away with a smaller subset of targets > and deliverables. AFAIK, graal needs the combined `graal-builder-image` as > input to their build anyway, so they should not have any dependency on what > the

Re: RFR: 8307194: Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries [v7]

2023-05-08 Thread Severin Gehwolf
On Fri, 5 May 2023 16:52:22 GMT, Jiangli Zhou wrote: >> This PR is branched from the makefile changes for >> https://bugs.openjdk.org/browse/JDK-8303796 and contains the following for >> handling the JDK/hotspot static libraries: >> >> - Introduce new make target(s) for creating image/bundle

Re: RFR: 8307483: New micros for j.u.c.LockSupport

2023-05-08 Thread David Holmes
On Fri, 5 May 2023 14:31:29 GMT, Alan Bateman wrote: >> These micros were developed while investigating JDK-8305670 by myself and >> Sergey Kuksenko. The order of thread creation was important in that bug, so >> there are 2 JMH for creating sleepers before and after the worker threads. > >