hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp
changeset 46644 a5813fb66270
parent 46381 020219e46c86
child 46667 ff7b9f61209e
equal deleted inserted replaced
46643:cb5f289ba033 46644:a5813fb66270
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, 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.
   491 
   491 
   492   Thread* t = Thread::current_or_null_safe();
   492   Thread* t = Thread::current_or_null_safe();
   493 
   493 
   494   // Must do this before SignalHandlerMark, if crash protection installed we will longjmp away
   494   // Must do this before SignalHandlerMark, if crash protection installed we will longjmp away
   495   // (no destructors can be run)
   495   // (no destructors can be run)
   496   os::WatcherThreadCrashProtection::check_crash_protection(sig, t);
   496   os::ThreadCrashProtection::check_crash_protection(sig, t);
   497 
   497 
   498   SignalHandlerMark shm(t);
   498   SignalHandlerMark shm(t);
   499 
   499 
   500   // Note: it's not uncommon that JNI code uses signal/sigset to install
   500   // Note: it's not uncommon that JNI code uses signal/sigset to install
   501   // then restore certain signal handler (e.g. to temporarily block SIGPIPE,
   501   // then restore certain signal handler (e.g. to temporarily block SIGPIPE,