equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 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. |
71 #else |
71 #else |
72 return false; |
72 return false; |
73 #endif |
73 #endif |
74 } |
74 } |
75 |
75 |
76 // Call this method to see if this thread has depending poll and appropriate action should be taken |
76 // Call this method to see if this thread should block for a safepoint. |
77 static inline bool poll(Thread* thread); |
77 static inline bool should_block(Thread* thread); |
78 |
78 |
79 // Blocks a thread until safepoint is completed |
79 // Blocks a thread until safepoint is completed |
80 static inline void block_if_requested(JavaThread* thread); |
80 static inline void block_if_requested(JavaThread* thread); |
81 |
81 |
82 // Caller is responsible for using a memory barrier if needed. |
82 // Caller is responsible for using a memory barrier if needed. |