Re: RFR: 8315373: Change VirtualThread to unmount after freezing, re-mount before thawing [v2]

2023-09-05 Thread Serguei Spitsyn
On Mon, 4 Sep 2023 08:24:19 GMT, Alan Bateman wrote: >> In the virtual thread implementation, thread identity switches to the >> carrier before freezing and switches back to the virtual thread after >> thawing. This was a forced move due to issues getting JVMTI to work with >> virtual

Re: RFR: 8315585: Optimization for decimal to string [v4]

2023-09-05 Thread Joe Darcy
On Wed, 6 Sep 2023 03:34:04 GMT, 温绍锦 wrote: >> BigDecimal is a commonly used class in business development, It is often >> necessary to perform toString or toPlainString operations on BigDecimal. >> >> The current version uses StringBuilder resulting in multiple memory >> allocations, I made

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v9]

2023-09-05 Thread Joe Darcy
On Thu, 31 Aug 2023 17:09:40 GMT, Mandy Chung wrote: >> 8268829: Provide an optimized way to walk the stack with Class object only >> >> `StackWalker::walk` creates one `StackFrame` per frame and the current >> implementation >> allocates one `StackFrameInfo` and one `MemberName` objects per

Re: RFR: 8315585: Optimization for decimal to string [v4]

2023-09-05 Thread 温绍锦
> BigDecimal is a commonly used class in business development, It is often > necessary to perform toString or toPlainString operations on BigDecimal. > > The current version uses StringBuilder resulting in multiple memory > allocations, I made a modification to improve performance. > > Because

Re: RFR: 8315585: Optimization for decimal to string [v3]

2023-09-05 Thread 温绍锦
On Tue, 5 Sep 2023 15:46:17 GMT, 温绍锦 wrote: >> BigDecimal is a commonly used class in business development, It is often >> necessary to perform toString or toPlainString operations on BigDecimal. >> >> The current version uses StringBuilder resulting in multiple memory >> allocations, I made

Re: RFR: 8267174: Many test files have the wrong Copyright header

2023-09-05 Thread Valerie Peng
On Tue, 5 Sep 2023 22:49:41 GMT, Erik Joelsson wrote: > There are a number of files in the `test` directory that have an incorrect > copyright header, which includes the "classpath" exception text. This patch > removes that text from all test files that I could find it in. I did this > using

Re: RFR: 8315444: Convert test/jdk/tools to Classfile API [v2]

2023-09-05 Thread Chen Liang
On Tue, 5 Sep 2023 16:05:14 GMT, Qing Xiao wrote: >> `/test/jdk/tools/lib/tests/JImageValidator.java`, tests in >> `/test/jdk/tools/jlink`, and `/test/jdk/tools/jimage`, >> `/test/jdk/java/time/nontestng/java/time/chrono/HijrahConfigTest.java` use >> on com.sun.tools.classfile and should be

Re: RFR: 8315410: Undocumented exceptions in java.text.StringCharacterIterator [v2]

2023-09-05 Thread Naoto Sato
On Tue, 5 Sep 2023 19:09:23 GMT, Justin Lu wrote: >> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8315558) >> which is a conformance change to document some exceptions in the >> specification of java.text.StringCharacterIterator. > > Justin Lu has updated the pull

Re: RFR: 8267174: Many test files have the wrong Copyright header

2023-09-05 Thread Chris Plummer
On Tue, 5 Sep 2023 22:49:41 GMT, Erik Joelsson wrote: > There are a number of files in the `test` directory that have an incorrect > copyright header, which includes the "classpath" exception text. This patch > removes that text from all test files that I could find it in. I did this > using

Re: RFR: 8267174: Many test files have the wrong Copyright header

2023-09-05 Thread Jonathan Gibbons
On Tue, 5 Sep 2023 22:49:41 GMT, Erik Joelsson wrote: > There are a number of files in the `test` directory that have an incorrect > copyright header, which includes the "classpath" exception text. This patch > removes that text from all test files that I could find it in. I did this > using

RFR: 8267174: Many test files have the wrong Copyright header

2023-09-05 Thread Erik Joelsson
There are a number of files in the `test` directory that have an incorrect copyright header, which includes the "classpath" exception text. This patch removes that text from all test files that I could find it in. I did this using a combination of `sed` and `grep`. Reviewing this patch is

Re: RFR: 8041488: Locale-Dependent List Patterns [v14]

2023-09-05 Thread Naoto Sato
> Introducing a new formatting class for locale-dependent list patterns. The > class is to provide the functionality from the Unicode Consortium's LDML > specification for [list > patterns](https://www.unicode.org/reports/tr35/tr35-general.html#ListPatterns). > For example, given a list of

Re: RFR: 8041488: Locale-Dependent List Patterns [v13]

2023-09-05 Thread Naoto Sato
> Introducing a new formatting class for locale-dependent list patterns. The > class is to provide the functionality from the Unicode Consortium's LDML > specification for [list > patterns](https://www.unicode.org/reports/tr35/tr35-general.html#ListPatterns). > For example, given a list of

Re: RFR: 8315097: Rename createJavaProcessBuilder [v3]

2023-09-05 Thread Mark Sheppard
On Wed, 30 Aug 2023 09:23:55 GMT, Leo Korinth wrote: >> Rename createJavaProcessBuilder so that it is not used by mistake instead of >> createTestJvm. >> >> I have used the following sed script: `find -name "*.java" | xargs -n 1 sed >> -i -e >>

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Naoto Sato
On Tue, 5 Sep 2023 21:14:00 GMT, Roger Riggs wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Removing unnecessary commas > > src/java.base/share/classes/java/text/ListFormat.java line 90: > >> 88: * method

Re: RFR: 8315579: SPARC64 builds are broken after JDK-8304913

2023-09-05 Thread Paul Hohensee
On Mon, 4 Sep 2023 07:28:03 GMT, Aleksey Shipilev wrote: > Similar to other issues in the same area. I have no SPARC machine to test the > build on, but this matches other fixes for other architectures > (https://github.com/openjdk/jdk/commit/83c096d6e20cd6e1164bc666df1be197a10431eb) > after

Re: RFR: 8312522: Implementation of Foreign Function & Memory API [v10]

2023-09-05 Thread Paul Sandoz
On Mon, 4 Sep 2023 15:54:41 GMT, Jorn Vernee wrote: >> This patch contains the implementation of the foreign linker & memory API >> JEP for Java 22. The initial patch is composed of commits brought over >> directly from the [panama-foreign >> repo](https://github.com/openjdk/panama-foreign).

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Roger Riggs
On Tue, 29 Aug 2023 16:51:49 GMT, Naoto Sato wrote: >> Introducing a new formatting class for locale-dependent list patterns. The >> class is to provide the functionality from the Unicode Consortium's LDML >> specification for [list >>

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Joe Wang
On Tue, 5 Sep 2023 19:50:26 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/text/ListFormat.java line 560: >> >>> 558: * The {@code UNIT} ListFormat style. This style concatenates >>> 559: * elements, useful for enumerating units. >>> 560: */ >> >> The

Re: RFR: JDK-8314121: test tools/jpackage/share/RuntimePackageTest.java#id0 fails on RHEL8

2023-09-05 Thread Alexey Semenyuk
On Fri, 1 Sep 2023 07:22:12 GMT, Matthias Baesken wrote: > on some RHEL Linux 8.X machines , we run into errors in test > tools/jpackage/share/RuntimePackageTest.java#id0 , error can be seen below. > It looks like these errors occur when running the jtreg tests with higher > concurrency, I did

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Naoto Sato
On Tue, 5 Sep 2023 20:25:52 GMT, Roger Riggs wrote: >> Good point. Will add some kind of limitation. > > I can't see what arbitrary limit would make sense. > But perhaps an APINote that formatting the string from an excessively long > list may exceed memory or string sizes. (Without being

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Naoto Sato
On Tue, 5 Sep 2023 20:29:53 GMT, Joe Wang wrote: >> Type and Style select a pattern defined for the locale. (for the zero arg >> and three arg getInstance methods). >> I think I would avoid the term "concatenation", the type defines a pattern >> that contains punctuation and connecting words.

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Joe Wang
On Tue, 5 Sep 2023 20:15:26 GMT, Roger Riggs wrote: >> I think that Type/Style/Locale forming a specific pattern is an >> implementation detail, so I would not describe it in the spec (although as >> you say they form a specific pattern in the impl). It could be that an impl >> of 3-arg

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Roger Riggs
On Tue, 5 Sep 2023 19:50:29 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/text/ListFormat.java line 521: >> >>> 519: var sb = new StringBuilder(256).append(patterns[START]); >>> 520: IntStream.range(2, count - 1).forEach(i -> >>>

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Joe Wang
On Tue, 5 Sep 2023 20:17:14 GMT, Naoto Sato wrote: >> I'd stick to the general first sentence structure used by DateFormat, >> Format, and MessageFormat. >> ("tools" in OpenJDK are standalone programs.) >> >> For example, >> "ListFormat formats and parses lists of strings." > > I agree,

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Roger Riggs
On Tue, 5 Sep 2023 19:50:23 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/text/ListFormat.java line 48: >> >>> 46: * List Patterns. >>> 47: * >>> 48: * Three types of concatenation are provided: {@link Type#STANDARD >>> STANDARD}, >> >> A "Type" and "Style" together make up a

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Naoto Sato
On Tue, 5 Sep 2023 20:04:57 GMT, Roger Riggs wrote: >> Thanks. Will modify the wording in the next revision. I think we should >> stick to the wording `format`/`parse` here. > > I'd stick to the general first sentence structure used by DateFormat, Format, > and MessageFormat. > ("tools" in

Re: RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" [v24]

2023-09-05 Thread Doug Lea
> Addresses Jdk 8288899 : java/util/concurrent/ExecutorService/CloseTest.java > failed with "InterruptedException: sleep interrupted" and related issues. > > This is a major ForkJoin update (and hard to review -- sorry) that finally > addresses incompatibilities between ExecutorService and

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Roger Riggs
On Tue, 5 Sep 2023 19:50:20 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/text/ListFormat.java line 46: >> >>> 44: * defined in Unicode Consortium's LDML specification for >>> 45: * >> href="https://www.unicode.org/reports/tr35/tr35-general.html#ListPatterns;> >>> 46: * List

Re: RFR: 8041488: Locale-Dependent List Patterns [v12]

2023-09-05 Thread Naoto Sato
On Sun, 3 Sep 2023 05:05:49 GMT, Joe Wang wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Removing unnecessary commas > > src/java.base/share/classes/java/text/ListFormat.java line 46: > >> 44: * defined in

Re: RFR: 8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API [v7]

2023-09-05 Thread Martin Doerr
On Mon, 4 Sep 2023 21:17:06 GMT, Martin Doerr wrote: >> I've found a way to solve the remaining FFI problem on linux PPC64 Big >> Endian. Large structs (>8 Bytes) which are passed in registers or on stack >> require shifting the Bytes in the last slot if the size is not a multiple of >> 8.

Re: RFR: 8306632: Add a JDK Property for specifying DTD support

2023-09-05 Thread Lance Andersen
On Fri, 28 Jul 2023 18:41:48 GMT, Joe Wang wrote: > Add a JDK Impl specific property 'jdk.xml.dtd.support' for applications to > specify how DTDs are handled. This property is uniformly supported across the > JDK XML libraries. It complements, rather than replaces, the existing > properties

Re: RFR: 5066247: Refine the spec of equals() and hashCode() for j.text.Format classes [v3]

2023-09-05 Thread Justin Lu
On Fri, 1 Sep 2023 22:26:00 GMT, Justin Lu wrote: >> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8315720) >> which refines the spec of `equals()` and `hashCode()` in `java.text.Format` >> related classes. >> >> The current spec for most of these methods is either

Re: RFR: 8315410: Undocumented exceptions in java.text.StringCharacterIterator [v2]

2023-09-05 Thread Justin Lu
> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8315558) > which is a conformance change to document some exceptions in the > specification of java.text.StringCharacterIterator. Justin Lu has updated the pull request incrementally with one additional commit since the last

Re: RFR: 8306632: Add a JDK Property for specifying DTD support

2023-09-05 Thread Joe Wang
On Sat, 2 Sep 2023 09:20:22 GMT, Alan Bateman wrote: > I think you've got this to a good place and brings uniformity to configuring > how all the processors deal with DTDs. The proposal in the CSR is approved > now so hopefully you'll get Reviewer cycles to help move forward on this. Thanks

Re: RFR: 8315585: Optimization for decimal to string [v3]

2023-09-05 Thread Claes Redestad
On Tue, 5 Sep 2023 15:46:17 GMT, 温绍锦 wrote: >> BigDecimal is a commonly used class in business development, It is often >> necessary to perform toString or toPlainString operations on BigDecimal. >> >> The current version uses StringBuilder resulting in multiple memory >> allocations, I made

Re: RFR: 8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API [v7]

2023-09-05 Thread Maurizio Cimadamore
On Mon, 4 Sep 2023 21:17:06 GMT, Martin Doerr wrote: >> I've found a way to solve the remaining FFI problem on linux PPC64 Big >> Endian. Large structs (>8 Bytes) which are passed in registers or on stack >> require shifting the Bytes in the last slot if the size is not a multiple of >> 8.

Re: RFR: 8315410: Undocumented exceptions in java.text.StringCharacterIterator

2023-09-05 Thread Naoto Sato
On Fri, 1 Sep 2023 23:12:28 GMT, Justin Lu wrote: > Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8315558) > which is a conformance change to document some exceptions in the > specification of java.text.StringCharacterIterator.

Re: RFR: 8315097: Rename createJavaProcessBuilder [v3]

2023-09-05 Thread Roger Riggs
On Mon, 4 Sep 2023 11:01:23 GMT, Leo Korinth wrote: > What do you prefer? Do you have a better alternative? Do someone still think > the current code is good? I think what we have today is inferior to all these > improvements, and I would like to make it harder to develop bad test ca The

Re: RFR: 8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API [v3]

2023-09-05 Thread Maurizio Cimadamore
On Mon, 4 Sep 2023 14:30:06 GMT, Maurizio Cimadamore wrote: >> @TheRealMDoerr We've been discussing the shifts in order to wrap our heads >> around it, and we've ended up with this diagram in order to try and >> visualize what happens: >> >> Let's say we have a struct with 3 ints: >> >> >>

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v9]

2023-09-05 Thread Mandy Chung
On Tue, 5 Sep 2023 16:44:24 GMT, Brent Christian wrote: >> Mandy Chung has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 29 commits: >> >> - Merge >> - Remove the new getInstance method taking varargs >> - update mode to be int

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v9]

2023-09-05 Thread Brent Christian
On Thu, 31 Aug 2023 17:09:40 GMT, Mandy Chung wrote: >> 8268829: Provide an optimized way to walk the stack with Class object only >> >> `StackWalker::walk` creates one `StackFrame` per frame and the current >> implementation >> allocates one `StackFrameInfo` and one `MemberName` objects per

Re: RFR: 8315579: SPARC64 builds are broken after JDK-8304913

2023-09-05 Thread Roger Riggs
On Mon, 4 Sep 2023 07:28:03 GMT, Aleksey Shipilev wrote: > Similar to other issues in the same area. I have no SPARC machine to test the > build on, but this matches other fixes for other architectures > (https://github.com/openjdk/jdk/commit/83c096d6e20cd6e1164bc666df1be197a10431eb) > after

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v8]

2023-09-05 Thread Brent Christian
On Tue, 29 Aug 2023 20:51:56 GMT, Mandy Chung wrote: >> 8268829: Provide an optimized way to walk the stack with Class object only >> >> `StackWalker::walk` creates one `StackFrame` per frame and the current >> implementation >> allocates one `StackFrameInfo` and one `MemberName` objects per

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v7]

2023-09-05 Thread Roger Riggs
On Wed, 30 Aug 2023 20:34:01 GMT, Vladimir Petko wrote: >> 8314491: Linux: jexec launched via PATH fails to find java > > Vladimir Petko 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

Re: RFR: 8315373: Change VirtualThread to unmount after freezing, re-mount before thawing [v2]

2023-09-05 Thread Serguei Spitsyn
On Mon, 4 Sep 2023 08:24:19 GMT, Alan Bateman wrote: >> In the virtual thread implementation, thread identity switches to the >> carrier before freezing and switches back to the virtual thread after >> thawing. This was a forced move due to issues getting JVMTI to work with >> virtual

Re: RFR: 8298619: java/io/File/GetXSpace.java is failing [v4]

2023-09-05 Thread Brian Burkhalter
The changes to this test were developed on a native Windows 11 machine. I have never seen this problem. A web search suggests that this is a Windows error message possibly due to drive error. On Sep 4, 2023, at 5:16 AM, Andrey Turbanov mailto:aturba...@openjdk.org>> wrote: It seems after

Re: RFR: 8315444: Convert test/jdk/tools to Classfile API [v2]

2023-09-05 Thread Qing Xiao
> /test/jdk/tools/lib/tests/JImageValidator.java, tests in > /test/jdk/tools/jlink and /test/jdk/tools/jimage use on > com.sun.tools.classfile and should be converted to Classfile API. Qing Xiao has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8311207: Cleanup for Optimization for UUID.toString [v11]

2023-09-05 Thread 温绍锦
> [PR 14578 ](https://github.com/openjdk/jdk/pull/14578) still has unresolved > discussions, continue to make improvements. > > # Benchmark Result > > > sh make/devkit/createJMHBundle.sh > bash configure --with-jmh=build/jmh/jars > make test TEST="micro:java.util.UUIDBench.toString" > > > ##

Re: RFR: 8315585: Optimization for decimal to string [v3]

2023-09-05 Thread 温绍锦
> BigDecimal is a commonly used class in business development, It is often > necessary to perform toString or toPlainString operations on BigDecimal. > > The current version uses StringBuilder resulting in multiple memory > allocations, I made a modification to improve performance. > > Because

Re: RFR: 8313258: RuntimeInvisibleTypeAnnotationsAttribute.annotations() API Index out of Bound error

2023-09-05 Thread Adam Sotona
On Thu, 31 Aug 2023 14:18:00 GMT, Chen Liang wrote: >> Classfile API suppose to throw IllegalArgumentException in situations where >> bytecode offset is out of allowed range. Such situation includes invalid >> offset parsed from a TypeAnnotation as well as from other CodeAttribute >>

Re: RFR: 8314085: Fixing scope from benchmark to thread for JMH tests having shared state

2023-09-05 Thread Sandhya Viswanathan
On Thu, 10 Aug 2023 15:30:19 GMT, Swati Sharma wrote: > In addition to the issue > [JDK-8311178](https://bugs.openjdk.org/browse/JDK-8311178), logically fixing > the scope from benchmark to thread for below benchmark files having shared > state, also which fixes few of the benchmarks

Re: RFR: 8315678: Classfile API ConstantPool::entryCount and ConstantPool::entryByIndex methods are confusing [v2]

2023-09-05 Thread Adam Sotona
> Classfile API `ConstantPool::entryCount` and `ConstantPool::entryByIndex` > methods are confusing and unsafe to use without knowledge of constant pool > specification. > This patch renames `ConstantPool::entryCount` to `ConstantPool::size` and > adds checks to `ConstantPool::entryByIndex` for

Re: RFR: 8314260: Unable to load system libraries on Windows when using a SecurityManager [v3]

2023-09-05 Thread Sean Mullan
On Tue, 5 Sep 2023 11:56:19 GMT, Per Minborg wrote: >> This PR proposes to read the system environment variable "SystemRoot" using >> a privileged operation so it will work in the event a default >> SecurityManager is in place. >> >> As the `SecurityManager` is deprecated for removal, no

RFR: 8315678: Classfile API ConstantPool::entryCount and ConstantPool::entryByIndex methods are confusing

2023-09-05 Thread Adam Sotona
Classfile API `ConstantPool::entryCount` and `ConstantPool::entryByIndex` methods are confusing and unsafe to use without knowledge of constant pool specification. This patch renames `ConstantPool::entryCount` to `ConstantPool::size` and adds checks to `ConstantPool::entryByIndex` for invalid

Re: RFR: 8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges [v2]

2023-09-05 Thread Christoph Langer
On Tue, 5 Sep 2023 13:52:09 GMT, Roger Riggs wrote: > A bit late due to a US holiday. Looks good. Thanks  - PR Comment: https://git.openjdk.org/jdk/pull/15222#issuecomment-1706695064

Re: RFR: 8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges [v2]

2023-09-05 Thread Roger Riggs
On Fri, 1 Sep 2023 08:32:20 GMT, Christoph Langer wrote: >> On Windows, the test java/lang/ProcessHandle/InfoTest.java can fail when run >> as user that is member of the Administrators group. In that case new files >> are not owned by the user but instead by BUILTIN\ADMINISTRATORS. This breaks

Re: RFR: 8314260: Unable to load system libraries on Windows when using a SecurityManager [v2]

2023-09-05 Thread Per Minborg
On Tue, 5 Sep 2023 09:36:59 GMT, ExE Boss wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add a SecurityManager for TestLinker > > test/jdk/java/foreign/TestLinker.java line 30: > >> 28: * @modules

Re: RFR: 8314260: Unable to load system libraries on Windows when using a SecurityManager [v3]

2023-09-05 Thread Per Minborg
> This PR proposes to read the system environment variable "SystemRoot" using a > privileged operation so it will work in the event a default SecurityManager > is in place. > > As the `SecurityManager` is deprecated for removal, no support methods were > added for reading environmental

RFR: 8315541: Classfile API TypeAnnotation.TargetInfo factory methods accept null labels

2023-09-05 Thread Adam Sotona
This patch performs null checks in to refuse null labels in TypeAnnotation.TargetInfo implementations. Please review. Thanks, Adam - Commit messages: - 8315541: Classfile API TypeAnnotation.TargetInfo factory methods accept null labels Changes:

Re: RFR: 8315585: Optimization for decimal to string [v2]

2023-09-05 Thread 温绍锦
> BigDecimal is a commonly used class in business development, It is often > necessary to perform toString or toPlainString operations on BigDecimal. > > The current version uses StringBuilder resulting in multiple memory > allocations, I made a modification to improve performance. > > Because

Re: RFR: 8314260: Unable to load system libraries on Windows when using a SecurityManager [v2]

2023-09-05 Thread ExE Boss
On Tue, 5 Sep 2023 09:38:17 GMT, Per Minborg wrote: >> This PR proposes to read the system environment variable "SystemRoot" using >> a privileged operation so it will work in the event a default >> SecurityManager is in place. >> >> As the `SecurityManager` is deprecated for removal, no

Re: RFR: 8314260: Unable to load system libraries on Windows when using a SecurityManager [v2]

2023-09-05 Thread Per Minborg
> This PR proposes to read the system environment variable "SystemRoot" using a > privileged operation so it will work in the event a default SecurityManager > is in place. > > As the `SecurityManager` is deprecated for removal, no support methods were > added for reading environmental

Re: RFR: 8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API [v3]

2023-09-05 Thread Martin Doerr
On Mon, 4 Sep 2023 14:30:06 GMT, Maurizio Cimadamore wrote: >> @TheRealMDoerr We've been discussing the shifts in order to wrap our heads >> around it, and we've ended up with this diagram in order to try and >> visualize what happens: >> >> Let's say we have a struct with 3 ints: >> >> >>

RFR: 8314260: Unable to load system libraries on Windows when using a SecurityManager

2023-09-05 Thread Per Minborg
This PR proposes to read the system environment variable "SystemRoot" using a privileged operation so it will work in the event a default SecurityManager is in place. As the `SecurityManager` is deprecated for removal, no support methods were added for reading environmental variables.

RFR: 8313452: Improve Classfile API attributes handling safety

2023-09-05 Thread Adam Sotona
This PR improved Classfile API attributes handling safety by introduction of attribute stability indicator and by extension of UnknownAttributesOption to more general AttributesProcessingOption. - Commit messages: - fixed remaining listFromTrustedArrayNullsAllowed calls to

Integrated: 8312491: Update Classfile API snippets and examples

2023-09-05 Thread Adam Sotona
On Fri, 21 Jul 2023 09:37:10 GMT, Adam Sotona wrote: > This pull request updates Classfile API snippets and examples and adds > missing javadoc. > > Please review. > > Thanks, > Adam This pull request has now been integrated. Changeset: 744b3970 Author:Adam Sotona URL:

Re: RFR: JDK-8314121: test tools/jpackage/share/RuntimePackageTest.java#id0 fails on RHEL8

2023-09-05 Thread Matthias Baesken
On Fri, 1 Sep 2023 07:22:12 GMT, Matthias Baesken wrote: > on some RHEL Linux 8.X machines , we run into errors in test > tools/jpackage/share/RuntimePackageTest.java#id0 , error can be seen below. > It looks like these errors occur when running the jtreg tests with higher > concurrency, I did

Re: RFR: 8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API [v7]

2023-09-05 Thread Jorn Vernee
On Mon, 4 Sep 2023 21:17:06 GMT, Martin Doerr wrote: >> I've found a way to solve the remaining FFI problem on linux PPC64 Big >> Endian. Large structs (>8 Bytes) which are passed in registers or on stack >> require shifting the Bytes in the last slot if the size is not a multiple of >> 8.

Integrated: 8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges

2023-09-05 Thread Christoph Langer
On Thu, 10 Aug 2023 09:54:43 GMT, Christoph Langer wrote: > On Windows, the test java/lang/ProcessHandle/InfoTest.java can fail when run > as user that is member of the Administrators group. In that case new files > are not owned by the user but instead by BUILTIN\ADMINISTRATORS. This breaks

Re: RFR: JDK-8314121: test tools/jpackage/share/RuntimePackageTest.java#id0 fails on RHEL8

2023-09-05 Thread Lutz Schmidt
On Fri, 1 Sep 2023 07:22:12 GMT, Matthias Baesken wrote: > on some RHEL Linux 8.X machines , we run into errors in test > tools/jpackage/share/RuntimePackageTest.java#id0 , error can be seen below. > It looks like these errors occur when running the jtreg tests with higher > concurrency, I did

Re: RFR: 8312491: Update Classfile API snippets and examples [v11]

2023-09-05 Thread Jan Lahoda
On Fri, 1 Sep 2023 12:13:05 GMT, Adam Sotona wrote: >> This pull request updates Classfile API snippets and examples and adds >> missing javadoc. >> >> Please review. >> >> Thanks, >> Adam > > Adam Sotona has updated the pull request incrementally with one additional > commit since the last

Integrated: 8315454: Add a way to create an immutable snapshot of a BitSet

2023-09-05 Thread Per Minborg
On Fri, 1 Sep 2023 08:21:13 GMT, Per Minborg wrote: > This PR proposes adding a new method to BitSet that provides an immutable > snapshot of the set in the form of an `IntPredicate`. > > The predicate is eligible for constant folding. > > Here are some classes in the JDK that would benefit

Re: RFR: 8315585: Optimization for decimal to string

2023-09-05 Thread Chen Liang
On Mon, 4 Sep 2023 04:58:08 GMT, 温绍锦 wrote: > BigDecimal is a commonly used class in business development, It is often > necessary to perform toString or toPlainString operations on BigDecimal. > > The current version uses StringBuilder resulting in multiple memory > allocations, I made a