Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/thread.cpp @ 1290:c8a467bf56ad
6914050: jvm assertion "guard pages must be in use" in -Xcomp mode
Summary: 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
author | coleenp |
---|---|
date | Tue, 02 Mar 2010 12:09:40 -0800 |
parents | 6deeaebad47a |
children | 3b3d12e645e7 |
comparison
equal
deleted
inserted
replaced
1287:8911d8c0596f | 1290:c8a467bf56ad |
---|---|
1635 JNIHandleBlock* block = free_handle_block(); | 1635 JNIHandleBlock* block = free_handle_block(); |
1636 set_free_handle_block(NULL); | 1636 set_free_handle_block(NULL); |
1637 JNIHandleBlock::release_block(block); | 1637 JNIHandleBlock::release_block(block); |
1638 } | 1638 } |
1639 | 1639 |
1640 // These have to be removed while this is still a valid thread. | |
1641 remove_stack_guard_pages(); | |
1642 | |
1640 if (UseTLAB) { | 1643 if (UseTLAB) { |
1641 tlab().make_parsable(true); // retire TLAB, if any | 1644 tlab().make_parsable(true); // retire TLAB, if any |
1642 } | 1645 } |
1643 | 1646 |
1644 #ifndef SERIALGC | 1647 #ifndef SERIALGC |