Github user zwoop commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1565#discussion_r106033633
  
    --- Diff: plugins/regex_revalidate/regex_revalidate.c ---
    @@ -362,7 +362,7 @@ config_handler(TSCont cont, TSEvent event ATS_UNUSED, 
void *edata ATS_UNUSED)
         iptr = __sync_val_compare_and_swap(&(pstate->invalidate_list), 
pstate->invalidate_list, i);
     
         if (iptr) {
    -      free_cont = TSContCreate(free_handler, NULL);
    +      free_cont = TSContCreate(free_handler, TSMutexCreate());
    --- End diff --
    
    I'm ok with this (assuming this solves the problem, it's not immediately 
clear as to why it needs the mutex). However, this approach of a schedule 
"delete" seems bad, we should change this (later) to use ref-counted data 
instead. That would eliminate the entire free_cont, and is a better / more 
reliable pattern.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to