1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, 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. |
309 uint64_t outdata[], uint_t validity[]) { |
309 uint64_t outdata[], uint_t validity[]) { |
310 return _meminfo != NULL ? _meminfo(inaddr, addr_count, info_req, info_count, |
310 return _meminfo != NULL ? _meminfo(inaddr, addr_count, info_req, info_count, |
311 outdata, validity) : -1; |
311 outdata, validity) : -1; |
312 } |
312 } |
313 |
313 |
314 enum { |
|
315 clear_interrupted = true |
|
316 }; |
|
317 static void setup_interruptible(JavaThread* thread); |
|
318 static void setup_interruptible_already_blocked(JavaThread* thread); |
|
319 static JavaThread* setup_interruptible(); |
|
320 static void cleanup_interruptible(JavaThread* thread); |
|
321 |
|
322 // perf counter incrementers used by _INTERRUPTIBLE |
|
323 |
|
324 static void bump_interrupted_before_count(); |
|
325 static void bump_interrupted_during_count(); |
|
326 |
|
327 #ifdef ASSERT |
|
328 static JavaThread* setup_interruptible_native(); |
|
329 static void cleanup_interruptible_native(JavaThread* thread); |
|
330 #endif |
|
331 |
|
332 static sigset_t* unblocked_signals(); |
314 static sigset_t* unblocked_signals(); |
333 static sigset_t* vm_signals(); |
315 static sigset_t* vm_signals(); |
334 static sigset_t* allowdebug_blocked_signals(); |
316 static sigset_t* allowdebug_blocked_signals(); |
335 |
317 |
336 // %%% Following should be promoted to os.hpp: |
318 // %%% Following should be promoted to os.hpp: |