Per-Ake Minborg

Results 108 comments of Per-Ake Minborg

Here are some figures for various platforms where we compare `AtomicReference`, double-checked locking holder, and `StableValue` using instance variables and where we iterate and sum 20 values from said constructs:...

I have reworked the stable collections so that we create StableValues on demand and store them in a lazily populated backing array. This improved performance significantly as well as gave...

Here are some updated benchmark graphs where we sum two instance variables of different sorts (higher is better): ![image](https://github.com/openjdk/jdk/assets/7457876/d82561d6-e803-4345-b6d2-6b0402e60211)

> _Mailing list message from [Olexandr Rotan](mailto:[email protected]) on [compiler-dev](mailto:[email protected]):_ > > Is it possible to make stable values and collections Serializable? I see various applications for this feature in entity...

Here are some results of a recently added benchmark that uses a memorized function (with 0 and 1 as input values): ![image](https://github.com/openjdk/jdk/assets/7457876/f2fd5b5a-ac89-483b-acb5-bc5de215417a) See [test/micro/org/openjdk/bench/java/lang/stable/MemoizedFunctionBenchmark.java for details](https://github.com/minborg/jdk/blob/stable-value/test/micro/org/openjdk/bench/java/lang/stable/MemoizedFunctionBenchmark.java)

We are considering another implementation with less complexity. So, for now, thank you for all the feedback so far. We will try to make sure to carry over them to...

A new PR will be made available shortly.

> @minborg Is it possible for you to review this collection bugfix? Will do! Thanks for the heads up.

Would it make sense to add some verbiage in the JavaDocs for `sun.misc.Unsafe` that indicates the planned direction for said class and the use of the new command line options?