This repository has been archived by the owner on Nov 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o A weird bug when using GCC 4.2 (not LLVM, or any other compile) and the optimizer is turned on. Fixed by adding a volatile qualifier to rkl_lastCachedRegex. Bug manifests even in non-multithreaded unit tests, but almost instantly under multi-threaded unit tests. The bug triggers an assertion failure- just after getting a regular expression via rkl_getCachedRegex, the regex returned and rkl_lastCachedRegex should be identical. Any change would indicate a that the spin lock was violated / not honored / etc. Seems to be an optimizer code generation bug specific to gcc 4.2 only. o Another split() bug where the results returned by ICU do not match the expected results (in this case, perl) Examples: [@"abc.def" componentsSeparatedByRegex:@"."] would return an array of seven @"". The expected result is an array with zero items. [@"xxxyxxx" componentsSeparatedByRegex:@"x"] would return {@"", @"", @"", @"y", @"", @""}, not the expected {@"", @"", @"", @"y"} o When running under GC, rkl_performEnumerationUsingBlock() could have over CFReleased() an object, causing a "underflow" error message to be printed. git-svn-id: https://regexkit.svn.sourceforge.net/svnroot/regexkit/RegexKitLite@65 83f0d1e4-963b-0410-a2a1-d3bd3f33e299
- Loading branch information
jengelhart
committed
Apr 14, 2010
1 parent
0c3dbaf
commit 572fe3f
Showing
2 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters