[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-2d-dev
Subject: [OpenJDK 2D-Dev] Question about AccelGlyphCache_AddGlyph
From: Dmitri.Trembovetski () Sun ! COM (Dmitri Trembovetski)
Date: 2008-06-09 14:51:34
Message-ID: 484D4376.7000105 () Sun ! COM
[Download RAW message or body]
Clemens Eisserer wrote:
> Sorry again, already found where it is set to null :-/
>
> lg Clemens
>
> 2008/6/9 Clemens Eisserer <linuxhippy at gmail.com>:
>> Hello,
>>
>> 1. In AccelGlyphCache_AddGlyph the cache simply nulls the
>> cellInfo-field, if the glyphinfo is removed from cache:
>> // if the cell is occupied, notify the base glyph that its
>> // cached version is about to be kicked out
>> cellinfo->glyphInfo->cellInfo = NULL;
>>
>> Is this really always safe? Couldn't there be the case that glyphInfo
>> has already been free'd, so that cellinfo->glyphInfo points to
>> garbage?
I guess you found that already.
>> 2. Where can I set the logging-level used at build-time, so that the
>> J2dTraceLn's will be compiled in?
If you build a debug or fastdebug build, they're compiled in.
J2dRlsTraceLns (Rls -> Release) are always compiled in, even in
an optimized binaries, so don't use them in performance
critical places.
To enable, set J2D_TRACE_LEVEL=N (where is in 1-4), see
src/share/native/sun/java2d/Trace.h/c
Thanks,
Dmitri
>>
>> Thanks, Clemens
>>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic