8023956: Provide a work-around to broken Linux 32 bit "Exec Shield" using CS for NX emulation (crashing with SI_KERNEL)

Execute some code at a high virtual address value, and keep mapped

Reviewed-by: coleenp, zgu
This commit is contained in:
David Simms 2013-09-25 13:58:13 +02:00
parent 522051490c
commit d5157be0e8
3 changed files with 60 additions and 0 deletions

View file

@ -4839,6 +4839,10 @@ jint os::init_2(void)
Linux::capture_initial_stack(JavaThread::stack_size_at_create());
#if defined(IA32)
workaround_expand_exec_shield_cs_limit();
#endif
Linux::libpthread_init();
if (PrintMiscellaneous && (Verbose || WizardMode)) {
tty->print_cr("[HotSpot is running with %s, %s(%s)]\n",