hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
changeset 46644 a5813fb66270
parent 46625 edefffab74e2
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.
   281 
   281 
   282   Thread* t = Thread::current_or_null_safe();
   282   Thread* t = Thread::current_or_null_safe();
   283 
   283 
   284   // Must do this before SignalHandlerMark, if crash protection installed we will longjmp away
   284   // Must do this before SignalHandlerMark, if crash protection installed we will longjmp away
   285   // (no destructors can be run)
   285   // (no destructors can be run)
   286   os::WatcherThreadCrashProtection::check_crash_protection(sig, t);
   286   os::ThreadCrashProtection::check_crash_protection(sig, t);
   287 
   287 
   288   SignalHandlerMark shm(t);
   288   SignalHandlerMark shm(t);
   289 
   289 
   290   // Note: it's not uncommon that JNI code uses signal/sigset to install
   290   // Note: it's not uncommon that JNI code uses signal/sigset to install
   291   // then restore certain signal handler (e.g. to temporarily block SIGPIPE,
   291   // then restore certain signal handler (e.g. to temporarily block SIGPIPE,