ICU-5426 Compact cached Unicodesets
X-SVN-Rev: 20461
This commit is contained in:
parent
c34f0ecd83
commit
fd3302b006
@ -1250,6 +1250,8 @@ const UnicodeSet* UnicodeSet::getInclusions(int32_t src, UErrorCode &status) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (U_SUCCESS(status)) {
|
if (U_SUCCESS(status)) {
|
||||||
|
// Compact for caching
|
||||||
|
incl->compact();
|
||||||
umtx_lock(NULL);
|
umtx_lock(NULL);
|
||||||
if (INCLUSIONS[src] == NULL) {
|
if (INCLUSIONS[src] == NULL) {
|
||||||
INCLUSIONS[src] = incl;
|
INCLUSIONS[src] = incl;
|
||||||
|
Loading…
Reference in New Issue
Block a user