mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8199813: SIGSEGV in ThreadsList::includes()
ThreadsListHandles cannot be used by JavaThreads that are not on the Threads list. Reviewed-by: eosterlund, gthornbr, dholmes, rehn
This commit is contained in:
parent
7995d17bca
commit
d2e9c712ad
5 changed files with 31 additions and 15 deletions
|
@ -1644,10 +1644,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|||
//
|
||||
// Dynamic loader will make all stacks executable after
|
||||
// this function returns, and will not do that again.
|
||||
#ifdef ASSERT
|
||||
ThreadsListHandle tlh;
|
||||
assert(tlh.length() == 0, "no Java threads should exist yet.");
|
||||
#endif
|
||||
assert(Threads::number_of_threads() == 0, "no Java threads should exist yet.");
|
||||
} else {
|
||||
warning("You have loaded library %s which might have disabled stack guard. "
|
||||
"The VM will try to fix the stack guard now.\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue