Board index » cppbuilder » all BCB6 apps: memory corruption in hyperthreading / dualCPU machines
Zach Saw
![]() CBuilder Developer |
all BCB6 apps: memory corruption in hyperthreading / dualCPU machines2005-10-25 09:03:13 PM cppbuilder17 Hi all, I've observed that some memory corruption occurs for all BCB built multithreaded applications on hyperthreading / dual CPU machines. I have an application that runs perfectly fine on Banias / Celeron but fails on P4 HT. If I disable HT, it passes. The same application also fails on dualCPU machines (servers). I come to this conclusion through some simple tests: declare a static global variable and assign a value to it. at the end of the test application, read it back to determine its correctness. Moving around the static global variable does affect the end value it holds. In some places, it remains the same value, while others will have it corrupted as soon as the second thread starts execution. |