mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8252406: Introduce Thread::as_Java_thread() convenience function
Reviewed-by: shade, coleenp, kbarrett, dcubed
This commit is contained in:
parent
488022689f
commit
976acddeb5
110 changed files with 360 additions and 456 deletions
|
@ -693,7 +693,6 @@ static void check_for_lazy_critical_native(JavaThread *thread, JavaThreadState s
|
|||
|
||||
void SafepointSynchronize::block(JavaThread *thread) {
|
||||
assert(thread != NULL, "thread must be set");
|
||||
assert(thread->is_Java_thread(), "not a Java thread");
|
||||
|
||||
// Threads shouldn't block if they are in the middle of printing, but...
|
||||
ttyLocker::break_tty_lock_for_safepoint(os::current_thread_id());
|
||||
|
@ -783,7 +782,6 @@ void SafepointSynchronize::block(JavaThread *thread) {
|
|||
|
||||
|
||||
void SafepointSynchronize::handle_polling_page_exception(JavaThread *thread) {
|
||||
assert(thread->is_Java_thread(), "polling reference encountered by VM thread");
|
||||
assert(thread->thread_state() == _thread_in_Java, "should come from Java code");
|
||||
|
||||
if (log_is_enabled(Info, safepoint, stats)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue