Changeset 10462


Ignore:
Timestamp:
Aug 13, 2008, 11:44:53 AM (11 years ago)
Author:
gb
Message:

in shutdown_thread_tcr(), zero the tlb_limit field before deallocating
the tlb pointer. Any other thread looking at this info -should- hold
lisp_global(TCR_AREA_LOCK) - which protects this code - but better
safe than sorry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/thread_manager.c

    r10386 r10462  
    859859    destroy_semaphore(&tcr->reset_completion);
    860860    destroy_semaphore(&tcr->activate);
     861    tcr->tlb_limit = 0;
    861862    free(tcr->tlb_pointer);
    862863    tcr->tlb_pointer = NULL;
    863     tcr->tlb_limit = 0;
    864864    tcr->osid = 0;
    865865    tcr->interrupt_pending = 0;
Note: See TracChangeset for help on using the changeset viewer.