RFR: 8281419: The source data for the color conversion can be discarded
Sergey Bylokhov
serb at openjdk.java.net
Tue Feb 8 05:54:36 UTC 2022
When we convert the image from one color profile to another one we copy data to the temp array, and after conversion, we commit both(src and dst). But the source array could be discarded since we do not(should not) change it.
Tested on windows (fastest result after a few runs). ThreadsMAX is 32 threads. The test is just a "ColorConvertOp.filter()" for the opaque buffered image.

https://jmh.morethan.io/?gists=541569ac2fe6173d471455d282680fa2,d3b91e1fba067c71fc73a6df8d47773f
-------------
Commit messages:
- JNI_ABORT
Changes: https://git.openjdk.java.net/jdk/pull/7375/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7375&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8281419
Stats: 10 lines in 1 file changed: 1 ins; 0 del; 9 mod
Patch: https://git.openjdk.java.net/jdk/pull/7375.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/7375/head:pull/7375
PR: https://git.openjdk.java.net/jdk/pull/7375
More information about the client-libs-dev
mailing list