Perl5Compiler and Perl5Matcher are designed with the intent that you use a separate instance of each per thread to avoid the overhead of both synchronization and concurrent access (e.g., a match that takes a long time in one thread will block the progress of another thread with a shorter match). If you want to use a single instance of each in a concurrent program, you must appropriately protect access to the instances with critical sections. If you want to share Perl5Pattern instances between concurrently executing instances of Perl5Matcher, you must compile the patterns with {@link Perl5Compiler#READ_ONLY_MASK}. @version @version@ @since 1.0 @see PatternCompiler @see MalformedPatternException @see Perl5Pattern @see Perl5Matcher
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|