Re: Should we allow use Unsafe or ByteArrayLittleEndian for trivial byte[] writes in core-libs?

2023-10-08 Thread -
Hello Wenshao and the core libraries mailing list, First, I want to talk about the roles of Unsafe and BALE. Unsafe itself is a collection of JVM-specific APIs that must be guarded from dependent Java code. The set/getXxx methods are one set of such APIs that directly utilizes unaligned reads and w

Re: RFR: 8315585: Optimization for decimal to string

2023-10-08 Thread 温绍锦
On Sun, 8 Oct 2023 15:30:00 GMT, Chen Liang wrote: > I think the String concat indy call site already generates code that computes > the size of the char array to be allocated (remember the lengthCoder from > String Concat). We can probably just use `highInt + '.' + > StringBuilderHelper.DIGIT

Re: RFR: 8180892: Correct handling of annotations on parameters [v2]

2023-10-08 Thread Joe Darcy
On Thu, 27 Apr 2023 23:42:54 GMT, Joe Darcy wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix assuming match without MethodParameters for type annotations, move >> implementation related to getAnnotatedParameterTy

Re: RFR: 8315585: Optimization for decimal to string

2023-10-08 Thread Chen Liang
On Mon, 2 Oct 2023 05:40:03 GMT, 温绍锦 wrote: > I submitted PR #1 before, and there were too many changes. I split it > into multiple PRs with small changes. This one is one of them. > > this PR removed the duplicate code for getChars in > BigDecimal#StringBuilderHelper, i also make performa

Library additions for shell scripting

2023-10-08 Thread Jens Lideström
Hello, Core lib developers :) Java is pretty decent for shell scripts style programs now days! I'd like to suggest a couple of additions to the standard library to make it better. ## Background By "shell script style programs" I mean programs that don't have a GUI and mostly perform these t