mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
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:
parent
cef423370c
commit
13ac3be829
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue