#8068 MIPS port of 8189170: Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM

Thu, 27 Dec 2018 12:42:35 +0800

author
aoqi
date
Thu, 27 Dec 2018 12:42:35 +0800
changeset 9451
24bab1ef457b
parent 9450
5df11fc40ae4
child 9452
2fac4ec98618

#8068 MIPS port of 8189170: Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM

src/os_cpu/linux_mips/vm/os_linux_mips.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/os_cpu/linux_mips/vm/os_linux_mips.cpp	Thu Dec 27 12:24:53 2018 +0800
     1.2 +++ b/src/os_cpu/linux_mips/vm/os_linux_mips.cpp	Thu Dec 27 12:42:35 2018 +0800
     1.3 @@ -819,8 +819,8 @@
     1.4  //    pthread_attr_getstack()
     1.5  
     1.6  static void current_stack_region(address * bottom, size_t * size) {
     1.7 -  if (os::Linux::is_initial_thread()) {
     1.8 -     // initial thread needs special handling because pthread_getattr_np()
     1.9 +  if (os::is_primordial_thread()) {
    1.10 +     // primordial thread needs special handling because pthread_getattr_np()
    1.11       // may return bogus value.
    1.12       *bottom = os::Linux::initial_thread_stack_bottom();
    1.13       *size   = os::Linux::initial_thread_stack_size();

mercurial