ICU-5426 Compact cached Unicodesets

X-SVN-Rev: 20461
This commit is contained in:
George Rhoten 2006-09-30 05:43:53 +00:00
parent c34f0ecd83
commit fd3302b006

View File

@ -1250,6 +1250,8 @@ const UnicodeSet* UnicodeSet::getInclusions(int32_t src, UErrorCode &status) {
break;
}
if (U_SUCCESS(status)) {
// Compact for caching
incl->compact();
umtx_lock(NULL);
if (INCLUSIONS[src] == NULL) {
INCLUSIONS[src] = incl;