They are implemented using tmpfs (mounted at /var/shm). Discussed on tech-{kern,userlevel} (quite a while ago).