RFR: CODETOOLS-7902948: jcstress: Shortcut counter copy path for copyable results [v2]
Aleksey Shipilev
shade at openjdk.java.net
Tue Jun 1 09:20:54 UTC 2021
> In jcstress, @Result instances can be reset in place. Which means that Counter has to do defensive copies before inserting results as keys. It now does it with serialization-deserialization stub. This takes about 10 ms to initialize on first key insertion. Fortunately, we can do better: if results are implicitly copyable (i.e. have only primitive fields), we can copy them directly.
Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
Javadoc
-------------
Changes:
- all: https://git.openjdk.java.net/jcstress/pull/56/files
- new: https://git.openjdk.java.net/jcstress/pull/56/files/16583222..3890b7e9
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jcstress&pr=56&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jcstress&pr=56&range=00-01
Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jcstress/pull/56.diff
Fetch: git fetch https://git.openjdk.java.net/jcstress pull/56/head:pull/56
PR: https://git.openjdk.java.net/jcstress/pull/56
More information about the jcstress-dev
mailing list