Re: RFR: 8024695: new File("").exists() returns false whereas it is the current working directory [v6]

2025-02-19 Thread Alan Bateman
On Thu, 20 Feb 2025 03:15:39 GMT, Brian Burkhalter wrote: >> Update the specification of `java.io.File.exists()` to match its behavior, >> which seems correct in the context of how the empty abstract pathname is >> documented elsewhere in the class. > > Brian Burkhalter has updated the pull req

Integrated: 8350049: [JMH] Float16OperationsBenchmark fails java.lang.NoClassDefFoundError

2025-02-19 Thread SendaoYan
On Fri, 14 Feb 2025 02:23:40 GMT, SendaoYan wrote: > Hi all, > > The newly added JMH tests > 'org.openjdk.bench.jdk.incubator.vector.VectorMultiplyOptBenchmark' fails > "java.lang.NoClassDefFoundError: jdk/incubator/vector/Float16" by below test > command: > > > make test MICRO="FORK=1;WARM

Re: RFR: 8350049: [JMH] Float16OperationsBenchmark fails java.lang.NoClassDefFoundError [v2]

2025-02-19 Thread SendaoYan
On Tue, 18 Feb 2025 09:58:50 GMT, SendaoYan wrote: >> Hi all, >> >> The newly added JMH tests >> 'org.openjdk.bench.jdk.incubator.vector.VectorMultiplyOptBenchmark' fails >> "java.lang.NoClassDefFoundError: jdk/incubator/vector/Float16" by below test >> command: >> >> >> make test MICRO="FO

Re: RFR: 8350049: [JMH] Float16OperationsBenchmark fails java.lang.NoClassDefFoundError [v2]

2025-02-19 Thread Jatin Bhateja
On Tue, 18 Feb 2025 09:58:50 GMT, SendaoYan wrote: >> Hi all, >> >> The newly added JMH tests >> 'org.openjdk.bench.jdk.incubator.vector.VectorMultiplyOptBenchmark' fails >> "java.lang.NoClassDefFoundError: jdk/incubator/vector/Float16" by below test >> command: >> >> >> make test MICRO="FO

Re: RFR: 8349620: Add VMProps for static JDK [v3]

2025-02-19 Thread Alan Bateman
On Wed, 19 Feb 2025 21:05:47 GMT, Jiangli Zhou wrote: > * No `jlink` tool in `static-jdk` when running on static JDK. This is > currently observable using the `static-jdk`. > * No separate `lib/modules` file (and other JDK resource files) if we build a > single hermetic Java image for the test.

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v12]

2025-02-19 Thread Galder Zamarreño
On Fri, 7 Feb 2025 12:39:24 GMT, Galder Zamarreño wrote: >> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in >> order to help improve vectorization performance. >> >> Currently vectorization does not kick in for loops containing either of >> these calls because of t

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v12]

2025-02-19 Thread Galder Zamarreño
On Wed, 19 Feb 2025 19:50:50 GMT, Evgeny Astigeevich wrote: >> I will run a comparison next with the same batch of tests but looking at >> `int` and see if there are any differences compared with `long` or not. > > Hi @galderz, > Results from Graviton 3(Neoverse-V1). > Without the patch: > > B

Withdrawn: 8349547: Document jlink and jmods Supported Usage

2025-02-19 Thread Prajwal Kumaraswamy
On Tue, 18 Feb 2025 09:24:38 GMT, Prajwal Kumaraswamy wrote: > Document supported usage of jlink with JDK jmod's > The document will reflect the future work from JDK-8347831 This pull request has been closed without being integrated. - PR: https://git.openjdk.org/jdk/pull/23672

Re: RFR: 8349547: Document jlink and jmods Supported Usage

2025-02-19 Thread Prajwal Kumaraswamy
On Tue, 18 Feb 2025 09:24:38 GMT, Prajwal Kumaraswamy wrote: > Document supported usage of jlink with JDK jmod's > The document will reflect the future work from JDK-8347831 Closing out this PR, since it will be taken care in JDK-8347831 - PR Comment: https://git.openjdk.org/jdk/p

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v3]

2025-02-19 Thread Chen Liang
On Thu, 20 Feb 2025 02:50:17 GMT, David Holmes wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Rename isPrimitiveType field to primitive. > > src/java.base/share/classes/java/lang/Class.java line 1297: > >> 1

Re: RFR: 8349959: Test CR6740048.java passes unexpectedly missing CR6740048.xsd

2025-02-19 Thread SendaoYan
On Wed, 19 Feb 2025 20:04:33 GMT, Joe Wang wrote: > The schema file is integral to the test, so we assume it will be present. A > minor improvement would be to remove the conditional check that verifies its > existence. This would allow the test to fail if it can't load the schema file. Do you

Re: RFR: 8024695: new File("").exists() returns false whereas it is the current working directory [v6]

2025-02-19 Thread Brian Burkhalter
> Update the specification of `java.io.File.exists()` to match its behavior, > which seems correct in the context of how the empty abstract pathname is > documented elsewhere in the class. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revi

Re: RFR: 8350051: [JMH] Several tests fails NPE [v2]

2025-02-19 Thread SendaoYan
On Wed, 19 Feb 2025 08:02:07 GMT, Claes Redestad wrote: >> SendaoYan has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use SetupCopyFiles macro to copy the dependency files > > If you have manually verified that the build fails if any of t

Integrated: 8350051: [JMH] Several tests fails NPE

2025-02-19 Thread SendaoYan
On Fri, 14 Feb 2025 07:21:27 GMT, SendaoYan wrote: > Hi all, > > Several JMH tests fails 'Cannot invoke "java.io.InputStream.available()" > because "is" is null', because the file > 'build/linux-x86_64-server-release/images/test/micro/benchmarks.jar' missing > the required xml input file defi

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v3]

2025-02-19 Thread David Holmes
On Wed, 19 Feb 2025 20:30:34 GMT, Coleen Phillimore wrote: >> Class.isInterface() can check modifier flags, Class.isArray() can check >> whether component mirror is non-null and Class.isPrimitive() needs a new >> final transient boolean in java.lang.Class that the JVM code initializes. >> Teste

Re: RFR: 8349943: [JMH] Use jvmArgs consistently

2025-02-19 Thread Hao Sun
On Thu, 13 Feb 2025 08:35:47 GMT, Nicole Xu wrote: > As is suggested in > [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should > be used consistently in microbenchmarks to 'align with the intuition that > when you use jvmArgsAppend/-Prepend intent is to add to a set of

Integrated: 8349943: [JMH] Use jvmArgs consistently

2025-02-19 Thread Nicole Xu
On Thu, 13 Feb 2025 08:35:47 GMT, Nicole Xu wrote: > As is suggested in > [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should > be used consistently in microbenchmarks to 'align with the intuition that > when you use jvmArgsAppend/-Prepend intent is to add to a set of

Re: RFR: 8349943: [JMH] Use jvmArgs consistently

2025-02-19 Thread duke
On Thu, 13 Feb 2025 08:35:47 GMT, Nicole Xu wrote: > As is suggested in > [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should > be used consistently in microbenchmarks to 'align with the intuition that > when you use jvmArgsAppend/-Prepend intent is to add to a set of

Re: RFR: 8349943: [JMH] Use jvmArgs consistently

2025-02-19 Thread Nicole Xu
On Thu, 13 Feb 2025 20:04:05 GMT, Chen Liang wrote: >> As is suggested in >> [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should >> be used consistently in microbenchmarks to 'align with the intuition that >> when you use jvmArgsAppend/-Prepend intent is to add to a se

Re: RFR: 8349943: [JMH] Use jvmArgs consistently

2025-02-19 Thread Claes Redestad
On Thu, 13 Feb 2025 08:35:47 GMT, Nicole Xu wrote: > As is suggested in > [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should > be used consistently in microbenchmarks to 'align with the intuition that > when you use jvmArgsAppend/-Prepend intent is to add to a set of

Re: RFR: 8349943: [JMH] Use jvmArgs consistently

2025-02-19 Thread Nicole Xu
On Thu, 13 Feb 2025 08:35:47 GMT, Nicole Xu wrote: > As is suggested in > [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should > be used consistently in microbenchmarks to 'align with the intuition that > when you use jvmArgsAppend/-Prepend intent is to add to a set of

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms [v4]

2025-02-19 Thread Jamil Nimeh
> This fix makes some minor changes to the internals of the > `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break > when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS > works better now with these changes. I've also taken this opportunity to do > s

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Coleen Phillimore
On Tue, 11 Feb 2025 20:56:39 GMT, Coleen Phillimore wrote: > Class.isInterface() can check modifier flags, Class.isArray() can check > whether component mirror is non-null and Class.isPrimitive() needs a new > final transient boolean in java.lang.Class that the JVM code initializes. > Tested wi

Re: RFR: 8342103: C2 compiler support for Float16 type and associated scalar operations [v18]

2025-02-19 Thread Sandhya Viswanathan
On Tue, 18 Feb 2025 02:36:13 GMT, Julian Waters wrote: >> Jatin Bhateja has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments resolutions > > Is anyone else getting compile failures after this was integrated? This > weirdly se

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms [v3]

2025-02-19 Thread Sean Mullan
On Thu, 13 Feb 2025 22:29:46 GMT, Jamil Nimeh wrote: >> Also, should it be moved to somewhere else like >> jdk/test/sun/security/provider/certpath? > >> Also, should it be moved to somewhere else like >> jdk/test/sun/security/provider/certpath? > > Hmmm...not sure about that, but maybe an exp

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v3]

2025-02-19 Thread Coleen Phillimore
> Class.isInterface() can check modifier flags, Class.isArray() can check > whether component mirror is non-null and Class.isPrimitive() needs a new > final transient boolean in java.lang.Class that the JVM code initializes. > Tested with tier1-4 and performance tests. Coleen Phillimore has upda

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v3]

2025-02-19 Thread Dean Long
On Wed, 19 Feb 2025 14:19:58 GMT, Coleen Phillimore wrote: > ... but not in the return since the caller likely will fetch the klass > pointer next. I notice that too. Callers are using is_primitive() to short-circuit calls to as_Klass(), which means they seem to be aware of this implementatio

Re: RFR: 8349620: Add VMProps for static JDK [v3]

2025-02-19 Thread Jiangli Zhou
On Wed, 19 Feb 2025 07:33:02 GMT, Alan Bateman wrote: > > This part however feels odd. Updating this (and other tests in future) to > > use the `@requires !jdk.static` to identify the presence or absence of a > > specific tool in the JDK installation doesn't seem right. Perhaps they > > should

Re: RFR: 8350151: Support requires property to filter tests incompatible with --enable-preview [v2]

2025-02-19 Thread Leonid Mesnik
On Wed, 19 Feb 2025 19:36:59 GMT, Roger Riggs wrote: >> Ough, this test puzzled me. It fails with --enable-preview. However, I think >> I need more time to investigate the issue. So I update PR to exclude test >> that explicitly says that it shouldn't be executed with --enable-preview. > > It r

Re: RFR: 8349959: Test CR6740048.java passes unexpectedly missing CR6740048.xsd

2025-02-19 Thread Joe Wang
On Fri, 14 Feb 2025 07:44:26 GMT, SendaoYan wrote: > Hi all, > > Test test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.java run passes > unexpectedly when missing the depentdent file > test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.xsd. This PR add a > NULL check after call `get

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Coleen Phillimore
On Wed, 19 Feb 2025 05:01:53 GMT, David Holmes wrote: >> Class.isInterface() can check modifier flags, Class.isArray() can check >> whether component mirror is non-null and Class.isPrimitive() needs a new >> final transient boolean in java.lang.Class that the JVM code initializes. >> Tested wit

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v12]

2025-02-19 Thread Evgeny Astigeevich
On Wed, 19 Feb 2025 17:43:54 GMT, Galder Zamarreño wrote: >> Galder Zamarreño has updated the pull request with a new target base due to >> a merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 44 additional >> c

Re: RFR: 8350151: Support requires property to filter tests incompatible with --enable-preview [v2]

2025-02-19 Thread Alan Bateman
On Wed, 19 Feb 2025 17:49:57 GMT, Leonid Mesnik wrote: >> It might be useful to be able to run testing with --enable-preview for >> feature development. The tests incompatible with this mode must be filtered >> out. >> >> I chose name 'java.enablePreview' , because it is more java property tha

Re: RFR: 8350151: Support requires property to filter tests incompatible with --enable-preview [v2]

2025-02-19 Thread Roger Riggs
On Wed, 19 Feb 2025 17:43:10 GMT, Leonid Mesnik wrote: >> test/jdk/java/lang/System/SecurityManagerWarnings.java line 28: >> >>> 26: * @bug 8266459 8268349 8269543 8270380 >>> 27: * @summary check various warnings >>> 28: * @requires !java.enablePreview >> >> What is the reason that this tes

Integrated: 8349699: XSL transform fails with certain UTF-8 characters on 1024 byte boundaries

2025-02-19 Thread Joe Wang
On Fri, 14 Feb 2025 00:56:03 GMT, Joe Wang wrote: > Fix an edge case in the patch for JDK-8207760. This pull request has now been integrated. Changeset: 4e60c2d9 Author:Joe Wang URL: https://git.openjdk.org/jdk/commit/4e60c2d937fca8170b356f36e72b271104130c40 Stats: 127 lines in

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v2]

2025-02-19 Thread Coleen Phillimore
> Class.isInterface() can check modifier flags, Class.isArray() can check > whether component mirror is non-null and Class.isPrimitive() needs a new > final transient boolean in java.lang.Class that the JVM code initializes. > Tested with tier1-4 and performance tests. Coleen Phillimore has upda

Re: RFR: 8349620: Add VMProps for static JDK [v3]

2025-02-19 Thread Jiangli Zhou
On Wed, 19 Feb 2025 06:54:50 GMT, Jaikiran Pai wrote: > On a more general note, is it a goal to have the static JDK build run against > all these tests that are part of the JDK repo? Would that mean that a lot of > these will have to start using `@requires` to accomodate this? Running static J

Re: RFR: 8350051: [JMH] Several tests fails NPE [v2]

2025-02-19 Thread Claes Redestad
On Wed, 19 Feb 2025 03:21:37 GMT, SendaoYan wrote: >> Hi all, >> >> Several JMH tests fails 'Cannot invoke "java.io.InputStream.available()" >> because "is" is null', because the file >> 'build/linux-x86_64-server-release/images/test/micro/benchmarks.jar' missing >> the required xml input fil

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Coleen Phillimore
On Wed, 19 Feb 2025 15:42:54 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/lang/Class.java line 1009: >> >>> 1007: private transient Object classData; // Set by VM >>> 1008: private transient Object[] signers; // Read by VM, mutable >>> 1009: private final transient char

Re: RFR: 8349620: Add VMProps for static JDK [v3]

2025-02-19 Thread Jiangli Zhou
On Wed, 19 Feb 2025 06:54:50 GMT, Jaikiran Pai wrote: >> Jiangli Zhou has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. > > On a more general note, is it a goal to have the

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v2]

2025-02-19 Thread Coleen Phillimore
On Wed, 19 Feb 2025 17:10:09 GMT, Coleen Phillimore wrote: >> It was. Before the componentType field was reused for the class >> initialization monitor int array, and it caused problems with core >> reflection if a program reflectively accesses this field after a few hundred >> times. See [JDK

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native [v2]

2025-02-19 Thread Coleen Phillimore
On Wed, 19 Feb 2025 15:07:57 GMT, Roger Riggs wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Code review comments. > > src/hotspot/share/prims/jvm.cpp line 2284: > >> 2282: // Please, refer to the descriptio

Re: RFR: 8350151: Support requires property to filter tests incompatible with --enable-preview [v2]

2025-02-19 Thread Leonid Mesnik
On Mon, 17 Feb 2025 08:28:05 GMT, Alan Bateman wrote: >> Leonid Mesnik has updated the pull request incrementally with one additional >> commit since the last revision: >> >> change other test to exclude > > test/jdk/java/lang/System/SecurityManagerWarnings.java line 28: > >> 26: * @bug 826

Re: RFR: 8350151: Support requires property to filter tests incompatible with --enable-preview [v2]

2025-02-19 Thread Leonid Mesnik
> It might be useful to be able to run testing with --enable-preview for > feature development. The tests incompatible with this mode must be filtered > out. > > I chose name 'java.enablePreview' , because it is more java property than vm > or jdk. And 'enablePreview' to be similar with jtreg t

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v12]

2025-02-19 Thread Galder Zamarreño
On Fri, 7 Feb 2025 12:39:24 GMT, Galder Zamarreño wrote: >> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in >> order to help improve vectorization performance. >> >> Currently vectorization does not kick in for loops containing either of >> these calls because of t

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v12]

2025-02-19 Thread Galder Zamarreño
On Fri, 7 Feb 2025 12:39:24 GMT, Galder Zamarreño wrote: >> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in >> order to help improve vectorization performance. >> >> Currently vectorization does not kick in for loops containing either of >> these calls because of t

Re: RFR: 8349699: XSL transform fails with certain UTF-8 characters on 1024 byte boundaries [v3]

2025-02-19 Thread Lance Andersen
On Wed, 19 Feb 2025 00:16:13 GMT, Joe Wang wrote: >> Fix an edge case in the patch for JDK-8207760. > > Joe Wang has updated the pull request incrementally with one additional > commit since the last revision: > > add tests verifying invalid sequence; also add tests to verify cases where > t

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Coleen Phillimore
On Wed, 19 Feb 2025 16:19:22 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/lang/Class.java line 1287: >> >>> 1285: */ >>> 1286: public Class getComponentType() { >>> 1287: // Only return for array types. Storage may be reused for >>> Class for instance types. >> >

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Coleen Phillimore
On Wed, 19 Feb 2025 02:54:05 GMT, Dean Long wrote: >> Class.isInterface() can check modifier flags, Class.isArray() can check >> whether component mirror is non-null and Class.isPrimitive() needs a new >> final transient boolean in java.lang.Class that the JVM code initializes. >> Tested with t

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Coleen Phillimore
On Tue, 11 Feb 2025 20:56:39 GMT, Coleen Phillimore wrote: > Class.isInterface() can check modifier flags, Class.isArray() can check > whether component mirror is non-null and Class.isPrimitive() needs a new > final transient boolean in java.lang.Class that the JVM code initializes. > Tested wi

Integrated: 8350102: Decouple jpackage test-lib Executor.Result and Executor classes

2025-02-19 Thread Alexey Semenyuk
On Fri, 14 Feb 2025 14:52:38 GMT, Alexey Semenyuk wrote: > 8350102: Decouple jpackage test-lib Executor.Result and Executor classes This pull request has now been integrated. Changeset: 3487f8cb Author:Alexey Semenyuk URL: https://git.openjdk.org/jdk/commit/3487f8cbd55b06d332d897a01

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method [v3]

2025-02-19 Thread Jason Mehrens
On Tue, 18 Feb 2025 09:56:21 GMT, David Beaumont wrote: >I'm afraid I don't see how the double-check idea would work... Yep. I missed that case. >The other option is to just allow the lock to be dropped. The other options are many. Leader-follower pattern would allow FileHandler to not hold

RFR: 8319447: Improve performance of delayed task handling

2025-02-19 Thread Doug Lea
(Copied from https://bugs.openjdk.org/browse/JDK-8319447) The problems addressed by this CR/PR are that ScheduledThreadPoolExecutor is both ill-suited for many (if not most) of its applications, and is a performance bottleneck (as seen especially in Loom and CompletableFuture usages). After con

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Chen Liang
On Tue, 11 Feb 2025 20:56:39 GMT, Coleen Phillimore wrote: > Class.isInterface() can check modifier flags, Class.isArray() can check > whether component mirror is non-null and Class.isPrimitive() needs a new > final transient boolean in java.lang.Class that the JVM code initializes. > Tested wi

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Chen Liang
On Wed, 19 Feb 2025 03:30:04 GMT, Dean Long wrote: >> Class.isInterface() can check modifier flags, Class.isArray() can check >> whether component mirror is non-null and Class.isPrimitive() needs a new >> final transient boolean in java.lang.Class that the JVM code initializes. >> Tested with t

Re: RFR: 8349944: [JMH] sun.misc.UnsafeOps cannot access class jdk.internal.misc.Unsafe

2025-02-19 Thread Chen Liang
On Wed, 19 Feb 2025 07:53:15 GMT, Nicole Xu wrote: > The UnsafeOps JMH benchmark fails with the following error: > > java.lang.IllegalAccessError: class > org.openjdk.bench.sun.misc.UnsafeOps (in unnamed module @0x520a3426) cannot > access class jdk.internal.misc.Unsafe (in module java.b

Re: RFR: 8350334: Add final keywords to FFM methods

2025-02-19 Thread Chen Liang
On Wed, 19 Feb 2025 14:23:04 GMT, Per Minborg wrote: > This PR proposes to add the `final` keyword to some classes and methods in > order to assist compiler devirtualization (e.g. in Graal native image). > > Passes `make test TEST=jdk_foreign` Looks simple and trivial. - Marked a

RFR: 8350334: Add final keywords to FFM methods

2025-02-19 Thread Per Minborg
This PR proposes to add the `final` keyword to some classes and methods in order to simplify compiler devirtualization (e.g. in Graal native image). Passes `make test TEST=jdk_foreign` - Commit messages: - Make methods and classes final Changes: https://git.openjdk.org/jdk/pull/23

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Chen Liang
On Wed, 19 Feb 2025 05:08:36 GMT, David Holmes wrote: >> Class.isInterface() can check modifier flags, Class.isArray() can check >> whether component mirror is non-null and Class.isPrimitive() needs a new >> final transient boolean in java.lang.Class that the JVM code initializes. >> Tested wit

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Roger Riggs
On Tue, 11 Feb 2025 20:56:39 GMT, Coleen Phillimore wrote: > Class.isInterface() can check modifier flags, Class.isArray() can check > whether component mirror is non-null and Class.isPrimitive() needs a new > final transient boolean in java.lang.Class that the JVM code initializes. > Tested wi

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Roger Riggs
On Tue, 11 Feb 2025 20:56:39 GMT, Coleen Phillimore wrote: > Class.isInterface() can check modifier flags, Class.isArray() can check > whether component mirror is non-null and Class.isPrimitive() needs a new > final transient boolean in java.lang.Class that the JVM code initializes. > Tested wi

Re: RFR: 8349653: Clarify the docs for MemorySegment::reinterpret

2025-02-19 Thread Per Minborg
On Wed, 19 Feb 2025 13:35:16 GMT, Jorn Vernee wrote: >> This PR proposes to clarify the documentation for two of the >> `MemorySegment::reinterpret` overloads. > > Marked as reviewed by jvernee (Reviewer). Thanks for the review @JornVernee! I am going to let this PR sit for an extra day in cas

Re: RFR: 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native

2025-02-19 Thread Coleen Phillimore
On Wed, 19 Feb 2025 02:54:36 GMT, Chen Liang wrote: >> I don't know if we have a style guide that covers this, but I believe the >> method and field could both be named `isPrimitive`. > > I would personally name such a boolean field `primitive`, but I don't have a > strong preference on the fie

Re: RFR: 8350051: [JMH] Several tests fails NPE [v2]

2025-02-19 Thread Erik Joelsson
On Wed, 19 Feb 2025 03:21:37 GMT, SendaoYan wrote: >> Hi all, >> >> Several JMH tests fails 'Cannot invoke "java.io.InputStream.available()" >> because "is" is null', because the file >> 'build/linux-x86_64-server-release/images/test/micro/benchmarks.jar' missing >> the required xml input fil

Re: RFR: 8349653: Clarify the docs for MemorySegment::reinterpret

2025-02-19 Thread Jorn Vernee
On Wed, 19 Feb 2025 09:14:03 GMT, Per Minborg wrote: > This PR proposes to clarify the documentation for two of the > `MemorySegment::reinterpret` overloads. Marked as reviewed by jvernee (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/23688#pullrequestreview-2626820343

Integrated: 8347946: Add API note that caller should validate/trust signers to the getCertificates and getCodeSigners methods of JarEntry and JarURLConnection

2025-02-19 Thread Sean Mullan
On Thu, 13 Feb 2025 16:27:03 GMT, Sean Mullan wrote: > This change adds an API note to these methods recommending that the caller > should perform further validation steps on the code signers that signed the > JAR file, such as validating the code signer's certificate chain, and > determining

Re: RFR: 8348975: Broken links in the JDK 24 JavaDoc API documentation, build 33

2025-02-19 Thread Nizar Benalla
On Tue, 18 Feb 2025 23:06:42 GMT, Ian Myers wrote: >> make/common/Modules.gmk line 95: >> >>> 93: SPEC_SUBDIRS += share/specs >>> 94: >>> 95: MAN_SUBDIRS += share/man windows/man >> >> Hm, normally I'd say you should use `$(TARGET_OS)/man`, but we typically >> generate docs for all platforms

Re: RFR: 8347946: Add API note that caller should validate/trust signers to the getCertificates and getCodeSigners methods of JarEntry and JarURLConnection

2025-02-19 Thread Jaikiran Pai
On Wed, 19 Feb 2025 10:43:06 GMT, Marcono1234 wrote: >> This change adds an API note to these methods recommending that the caller >> should perform further validation steps on the code signers that signed the >> JAR file, such as validating the code signer's certificate chain, and >> determin

Re: [External] : Re: JDK-8072840: Presizing for Stream Collectors

2025-02-19 Thread forax
> From: "Viktor Klang" > To: "Remi Forax" , "Fabian Meumertzheim" > > Cc: "Paul Sandoz" , "core-libs-dev" > > Sent: Wednesday, February 19, 2025 11:43:33 AM > Subject: Re: [External] : Re: JDK-8072840: Presizing for Stream Collectors > Might be possible to extract the "descriptive" accessors to

Re: RFR: 8347946: Add API note that caller should validate/trust signers to the getCertificates and getCodeSigners methods of JarEntry and JarURLConnection

2025-02-19 Thread Marcono1234
On Thu, 13 Feb 2025 16:27:03 GMT, Sean Mullan wrote: > This change adds an API note to these methods recommending that the caller > should perform further validation steps on the code signers that signed the > JAR file, such as validating the code signer's certificate chain, and > determining

Re: [External] : Re: JDK-8072840: Presizing for Stream Collectors

2025-02-19 Thread Viktor Klang
Might be possible to extract the "descriptive" accessors to a superinterface of Spliterator. And Gatherer could either transform an incoming such instance to an estimated outbound instance, plus an overload of initializer, and Collector would likely only need the supplier overload. Cheers, √

Re: RFR: 8349944: [JMH] sun.misc.UnsafeOps cannot access class jdk.internal.misc.Unsafe

2025-02-19 Thread Alan Bateman
On Wed, 19 Feb 2025 07:53:15 GMT, Nicole Xu wrote: > The UnsafeOps JMH benchmark fails with the following error: > > java.lang.IllegalAccessError: class > org.openjdk.bench.sun.misc.UnsafeOps (in unnamed module @0x520a3426) cannot > access class jdk.internal.misc.Unsafe (in module java.b

Re: RFR: 8349944: [JMH] sun.misc.UnsafeOps cannot access class jdk.internal.misc.Unsafe

2025-02-19 Thread Nicole Xu
On Wed, 19 Feb 2025 07:53:15 GMT, Nicole Xu wrote: > The UnsafeOps JMH benchmark fails with the following error: > > java.lang.IllegalAccessError: class > org.openjdk.bench.sun.misc.UnsafeOps (in unnamed module @0x520a3426) cannot > access class jdk.internal.misc.Unsafe (in module java.b

RFR: 8349944: [JMH] sun.misc.UnsafeOps cannot access class jdk.internal.misc.Unsafe

2025-02-19 Thread Nicole Xu
The UnsafeOps JMH benchmark fails with the following error: java.lang.IllegalAccessError: class org.openjdk.bench.sun.misc.UnsafeOps (in unnamed module @0x520a3426) cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.mis

RFR: 8347814: Make all imports consistent in the FFM API tests and benchmarks

2025-02-19 Thread Per Minborg
This PR proposes to make all imports consistent in the FFM API tests and benchmarks. This is a follow-up PR from https://github.com/openjdk/jdk/pull/22827 Passes tier1-3 - Commit messages: - Merge branch 'master' into fix-imports-tests - Fix copyright year - Fix imports Changes

RFR: 8349653: Clarify the docs for MemorySegment::reinterpret

2025-02-19 Thread Per Minborg
This PR proposes to clarify the documentation for two of the `MemorySegment::reinterpret` overloads. - Commit messages: - Revise MemorySegment::reinterpret docs Changes: https://git.openjdk.org/jdk/pull/23688/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23688&range=00

Re: RFR: 8350051: [JMH] Several tests fails NPE [v2]

2025-02-19 Thread SendaoYan
On Wed, 19 Feb 2025 08:02:07 GMT, Claes Redestad wrote: > have manually verified that the build fails if any of these files are removed. Yes. I have verified that. If I remove the dependency XML file, then `make test-image CONF=release JOBS=1` will report below failure. gmake[3]: *** No rule

Re: RFR: 8350051: [JMH] Several tests fails NPE [v2]

2025-02-19 Thread Claes Redestad
On Wed, 19 Feb 2025 03:21:37 GMT, SendaoYan wrote: >> Hi all, >> >> Several JMH tests fails 'Cannot invoke "java.io.InputStream.available()" >> because "is" is null', because the file >> 'build/linux-x86_64-server-release/images/test/micro/benchmarks.jar' missing >> the required xml input fil

Re: RFR: 8349547: Document jlink and jmods Supported Usage

2025-02-19 Thread Alan Bateman
On Tue, 18 Feb 2025 09:24:38 GMT, Prajwal Kumaraswamy wrote: > Document supported usage of jlink with JDK jmod's > The document will reflect the future work from JDK-8347831 There are several issues with the proposed update. I think it would be better to close this PR and we'll update the jlin