Citation needed. There are tons of Chinese people left in northern Malay(si)a, and cities like Ipoh and Georgetown are majority-Chinese.
My mother grew up in Ipoh. Her brother was drafted by the British in the 1950s for this campaign (as was typical of British colonial practice, he is not malay, chinese or english). His and his buddys' description of the process was pretty clear: 1 - all bumiputrahs into kampongs. 2 - once that's done you are free to shoot anything that moved (which he said was a euphemism for ethnic chinese), with no consequences.
Allegedly the British were fighting communist infiltration from maoist China, so the shape of your body was proof of your guilt. I have no idea if there really was infiltration and the cantonese/fujianese who spread through the British empire were typically hardly of the communist persuasion.
The Strategic Hamlet program built barbed wire fences and guild posts around existing or purpose-built villages, enforcing curfew, ID checks, etc supposedly by "villagers" but typically by the army. Collective punishment was administered to villages who "failed" to keep out either communists or "communists".
If you don't consider that imprisonment, what is it?
Basically they copied the British "Kampung Baru" (AKA "resettlement") program with even less success than the British. FWIW British ruthlessness in Malaya was more "effective" than the US in Viet Nam -- there were basically no people of Chinese origin left in northern Malaya. A classic "play one side off against another, using troops from yet another outside group" strategy that had been so effective for centuries.