On ZFS, use a zvol as a swap partition. Easy to create, destroy, resize, have redundant copies for robustness, all of the configuration options you have for a data volume but use for swap.
I've done this on both FreeBSD and Linux, never had a problem. However, IIRC there might have been some issues in the past on Linux.