6914050: jvm assertion "guard pages must be in use" in -Xcomp mode

Move creating stack guard pages in jni attach thread before potential java call rather than after. Also cleanup stack guard pages when jni attach fails

Reviewed-by: never, dholmes
This commit is contained in:
Coleen Phillimore 2010-03-02 12:09:40 -08:00
parent cef423370c
commit 13ac3be829
2 changed files with 7 additions and 3 deletions

View file

@ -1637,6 +1637,9 @@ void JavaThread::cleanup_failed_attach_current_thread() {
JNIHandleBlock::release_block(block);
}
// These have to be removed while this is still a valid thread.
remove_stack_guard_pages();
if (UseTLAB) {
tlab().make_parsable(true); // retire TLAB, if any
}