That assumes the OOM killer kills the right thing. It may well choose to kill something ancillary, which causes your OOM program to just hang or misbehave wildly.
The real danger in all of this, swap or no, is the shitty OOMKiller in Linux.
The real danger in all of this, swap or no, is the shitty OOMKiller in Linux.