8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot

Reviewed-by: dholmes, sla
4 files changed