Patent ID: 7856637

Claim:
A method for runtime emulating static thread local storage of a portable executable software code, said method comprising the steps of: a. providing a thread data block duplicate computerized establishable within an isolated process memory area within which said method is practiced, whereby said thread data block duplicate is of predetermined size within said isolated process memory area; b. running an application within said isolated process memory area, said application being related to said portable executable software code; c. while running said application, running an event notification system generating a first event notification, a second event notification, a third event notification, and a fourth event notification, whereby said first event notification is associated with an intercepted runtime DLL loading, whereby said second event notification is associated with an intercepted runtime DLL freeing, whereby said third event notification is associated with an intercepted runtime thread create call, and whereby said fourth event notification is associated with an intercepted runtime thread exit call, whereby said intercepted runtime DLL loading, said intercepted runtime DLL freeing, said intercepted runtime thread create call and said intercepted runtime thread exit call are made by said application; d. upon occurrence of said third event notification, establishing said thread data block duplicate within said isolated process memory area for access by a thread created by said intercepted runtime thread create call; and e. upon occurrence of at least one of said first event notification and said second event notification, executing a thread local storage callback function associated with at least one of a loaded DLL and a freed DLL, said loaded DLL being loaded during said intercepted runtime DLL loading, said freed DLL being freed during said intercepted runtime DLL freeing.