--- a/src/hotspot/os/solaris/os_solaris.cpp Fri Aug 10 09:30:26 2018 -0400
+++ b/src/hotspot/os/solaris/os_solaris.cpp Fri Aug 10 09:36:01 2018 -0400
@@ -78,7 +78,6 @@
# include <link.h>
# include <poll.h>
# include <pthread.h>
-# include <schedctl.h>
# include <setjmp.h>
# include <signal.h>
# include <stdio.h>
@@ -742,7 +741,6 @@
OSThread* osthr = thread->osthread();
osthr->set_lwp_id(_lwp_self()); // Store lwp in case we are bound
- thread->_schedctl = (void *) schedctl_init();
log_info(os, thread)("Thread is alive (tid: " UINTX_FORMAT ").",
os::current_thread_id());
@@ -812,7 +810,6 @@
// Store info on the Solaris thread into the OSThread
osthread->set_thread_id(thread_id);
osthread->set_lwp_id(_lwp_self());
- thread->_schedctl = (void *) schedctl_init();
if (UseNUMA) {
int lgrp_id = os::numa_get_group_id();
@@ -3407,13 +3404,6 @@
return OS_OK;
}
-
-// Hint to the underlying OS that a task switch would not be good.
-// Void return because it's a hint and can fail.
-void os::hint_no_preempt() {
- schedctl_start(schedctl_init());
-}
-
////////////////////////////////////////////////////////////////////////////////
// suspend/resume support