RFR: 8377937: [macos] GlyphMetrics advance does not consider font rotation
Sergey Bylokhov
serb at openjdk.org
Mon Feb 23 17:54:52 UTC 2026
On Mon, 23 Feb 2026 13:12:24 GMT, Daniel Gredler <dgredler at openjdk.org> wrote:
>Sequence: getGlyphImagePtr -> getGlyphImagePtrs -> getFilteredGlyphImagePtrs -> getGlyphImagePtrsNative -> Java_sun_font_CStrike_getGlyphImagePtrsNative -> CGGlyphImages_GetGlyphImagePtrs -> CGGI_CreateGlyphsAndScanForComplexities -> CGGI_CreateGlyphInfos -> CGGI_CreateNewGlyphInfoFrom /// OR /// CGGI_FillImagesForGlyphs -> CGGI_FillImagesForGlyphsWithSizedCanvas -> CGGI_CreateImageForUnicode -> CGGI_CreateNewGlyphInfoFrom
This is some objc code that may throw an NSException. It will be caught in Java_sun_font_CStrike_getGlyphImagePtrsNative by JNI_COCOA_ENTER / JNI_COCOA_EXIT.
And that assumption that malloc always succeed is suspicion.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29726#issuecomment-3946356155
More information about the client-libs-dev
mailing list