src/hotspot/os/bsd/jvm_bsd.cpp
changeset 48875 c1e7612f6b11
parent 47765 b7c7428eaab9
child 49449 ef5d5d343e2a
equal deleted inserted replaced
48874:f09fdaad7321 48875:c1e7612f6b11
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    48   switch (sig) {
    48   switch (sig) {
    49     /* The following are already used by the VM. */
    49     /* The following are already used by the VM. */
    50     case SIGFPE:
    50     case SIGFPE:
    51     case SIGILL:
    51     case SIGILL:
    52     case SIGSEGV:
    52     case SIGSEGV:
       
    53 
       
    54 #if defined(__APPLE__)
       
    55     /* On Darwin, memory access errors commonly results in SIGBUS instead
       
    56      * of SIGSEGV. */
       
    57     case SIGBUS:
       
    58 #endif
    53 
    59 
    54     /* The following signal is used by the VM to dump thread stacks unless
    60     /* The following signal is used by the VM to dump thread stacks unless
    55        ReduceSignalUsage is set, in which case the user is allowed to set
    61        ReduceSignalUsage is set, in which case the user is allowed to set
    56        his own _native_ handler for this signal; thus, in either case,
    62        his own _native_ handler for this signal; thus, in either case,
    57        we do not allow JVM_RegisterSignal to change the handler. */
    63        we do not allow JVM_RegisterSignal to change the handler. */