RFR: 8334137: Marlin: replace sun.misc.Unsafe memory access methods with FFM [v8]

Phil Race prr at openjdk.org
Wed Jun 11 17:35:38 UTC 2025


On Wed, 11 Jun 2025 17:23:56 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

>> Kevin Rushforth has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Use the global arena for the ALPHA_MASK arrays.
>>  - Revert "Initialize alpha maps in constructor to ensure they are created on the right thread (QuantumRenderer)"
>>    
>>    This reverts commit 2dd7a35d2eec16b04de1f4cb7aeba31be5d98a55.
>
> modules/javafx.graphics/src/main/java/com/sun/marlin/OffHeapArray.java line 165:
> 
>> 163: 
>> 164:     void free() {
>> 165:         if (global) {
> 
> Trying to close the global arena results in an UnsupportedOperationException according to the docs. Not sure doing this manually adds anything.

true

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1814#discussion_r2140731769


More information about the openjfx-dev mailing list