hotspot/src/os_cpu/aix_ppc/vm/os_aix_ppc.cpp
changeset 43463 7a094360fe82
parent 42906 1a8db9cf1407
equal deleted inserted replaced
43462:cde11973a86a 43463:7a094360fe82
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2012, 2016 SAP SE. All rights reserved.
     3  * Copyright (c) 2012, 2017 SAP SE. All rights reserved.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
     8  * published by the Free Software Foundation.
     8  * published by the Free Software Foundation.
   256       os::Aix::ucontext_set_pc(uc, StubRoutines::continuation_for_safefetch_fault(pc));
   256       os::Aix::ucontext_set_pc(uc, StubRoutines::continuation_for_safefetch_fault(pc));
   257       return true;
   257       return true;
   258     }
   258     }
   259   }
   259   }
   260 
   260 
   261   // Handle SIGDANGER right away. AIX would raise SIGDANGER whenever available swap
       
   262   // space falls below 30%. This is only a chance for the process to gracefully abort.
       
   263   // We can't hope to proceed after SIGDANGER since SIGKILL tailgates.
       
   264   if (sig == SIGDANGER) {
       
   265     goto report_and_die;
       
   266   }
       
   267 
       
   268   if (info == NULL || uc == NULL || thread == NULL && vmthread == NULL) {
   261   if (info == NULL || uc == NULL || thread == NULL && vmthread == NULL) {
   269     goto run_chained_handler;
   262     goto run_chained_handler;
   270   }
   263   }
   271 
   264 
   272   // If we are a java thread...
   265   // If we are a java thread...