MINOR: threads/regex: Change Regex trash buffer into a thread local variable
diff --git a/include/common/regex.h b/include/common/regex.h
index 2f171b3..c3b921b 100644
--- a/include/common/regex.h
+++ b/include/common/regex.h
@@ -76,7 +76,7 @@
     void *cond;				/* a possible condition or NULL */
 };
 
-extern regmatch_t pmatch[MAX_MATCH];
+extern THREAD_LOCAL regmatch_t pmatch[MAX_MATCH];
 
 /* "str" is the string that contain the regex to compile.
  * "regex" is preallocated memory. After the execution of this function, this