equal
deleted
inserted
replaced
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 * Copyright (c) 2014, Red Hat Inc. All rights reserved. |
3 * Copyright (c) 2014, Red Hat Inc. 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 |
275 |
275 |
276 Thread* t = Thread::current_or_null_safe(); |
276 Thread* t = Thread::current_or_null_safe(); |
277 |
277 |
278 // Must do this before SignalHandlerMark, if crash protection installed we will longjmp away |
278 // Must do this before SignalHandlerMark, if crash protection installed we will longjmp away |
279 // (no destructors can be run) |
279 // (no destructors can be run) |
280 os::WatcherThreadCrashProtection::check_crash_protection(sig, t); |
280 os::ThreadCrashProtection::check_crash_protection(sig, t); |
281 |
281 |
282 SignalHandlerMark shm(t); |
282 SignalHandlerMark shm(t); |
283 |
283 |
284 // Note: it's not uncommon that JNI code uses signal/sigset to install |
284 // Note: it's not uncommon that JNI code uses signal/sigset to install |
285 // then restore certain signal handler (e.g. to temporarily block SIGPIPE, |
285 // then restore certain signal handler (e.g. to temporarily block SIGPIPE, |