A tool is provided for modifying the code of a multi-threaded computer program undergoing testing. The program executes in an environment that has a governing memory model. It is assumed that there is a global heap and a thread-local heap, which are synchronized from time to time. The modifications are of two types: (1) code instructions are reordered while remaining in compliance with the memory model; and (2) thread-local variables are added to functions, together with inserted heap synchronizing instructions. The modified programs are then used by a test generator to prepare test cases for execution. The modifications have the effect of changing the interleavings that occur among different threads, and increase the likelihood of exposing flaws that may become evident under different memory models.

 
Web www.patentalert.com

< Method and system for instantiating components conforming to the "COM" specification in custom contexts

< Program editing apparatus, program editing method, and program for splitting a program file

> Animated user interface for a display screen

> Method and system for allowing code to be securely initialized in a computer

~ 00603