< prev index next >

src/hotspot/os/linux/os_linux.cpp

Print this page
rev 49294 : imported patch 8199813

*** 1642,1655 **** // This should happen only when you are building JDK7 using a very // old version of JDK6 (e.g., with JPRT) and running test_gamma. // // 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 } else { warning("You have loaded library %s which might have disabled stack guard. " "The VM will try to fix the stack guard now.\n" "It's highly recommended that you fix the library with " "'execstack -c <libfile>', or link it with '-z noexecstack'.", --- 1642,1652 ---- // This should happen only when you are building JDK7 using a very // old version of JDK6 (e.g., with JPRT) and running test_gamma. // // Dynamic loader will make all stacks executable after // this function returns, and will not do that again. ! 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" "It's highly recommended that you fix the library with " "'execstack -c <libfile>', or link it with '-z noexecstack'.",
< prev index next >