[Bug 589021] Better protect java stack