8159590: Remove deprecated methods from jdk.internal.misc.VM
Reviewed-by: chegar, dholmes
--- a/hotspot/src/share/vm/classfile/javaClasses.cpp Tue Jun 21 09:19:53 2016 +0200
+++ b/hotspot/src/share/vm/classfile/javaClasses.cpp Tue Jun 21 12:09:36 2016 +0200
@@ -1377,7 +1377,6 @@
int java_lang_ThreadGroup::_maxPriority_offset = 0;
int java_lang_ThreadGroup::_destroyed_offset = 0;
int java_lang_ThreadGroup::_daemon_offset = 0;
-int java_lang_ThreadGroup::_vmAllowSuspension_offset = 0;
int java_lang_ThreadGroup::_nthreads_offset = 0;
int java_lang_ThreadGroup::_ngroups_offset = 0;
@@ -1435,11 +1434,6 @@
return java_thread_group->bool_field(_daemon_offset) != 0;
}
-bool java_lang_ThreadGroup::is_vmAllowSuspension(oop java_thread_group) {
- assert(java_thread_group->is_oop(), "thread group must be oop");
- return java_thread_group->bool_field(_vmAllowSuspension_offset) != 0;
-}
-
void java_lang_ThreadGroup::compute_offsets() {
assert(_parent_offset == 0, "offsets should be initialized only once");
@@ -1452,7 +1446,6 @@
compute_offset(_maxPriority_offset, k, vmSymbols::maxPriority_name(), vmSymbols::int_signature());
compute_offset(_destroyed_offset, k, vmSymbols::destroyed_name(), vmSymbols::bool_signature());
compute_offset(_daemon_offset, k, vmSymbols::daemon_name(), vmSymbols::bool_signature());
- compute_offset(_vmAllowSuspension_offset, k, vmSymbols::vmAllowSuspension_name(), vmSymbols::bool_signature());
compute_offset(_nthreads_offset, k, vmSymbols::nthreads_name(), vmSymbols::int_signature());
compute_offset(_ngroups_offset, k, vmSymbols::ngroups_name(), vmSymbols::int_signature());
}
--- a/hotspot/src/share/vm/classfile/javaClasses.hpp Tue Jun 21 09:19:53 2016 +0200
+++ b/hotspot/src/share/vm/classfile/javaClasses.hpp Tue Jun 21 12:09:36 2016 +0200
@@ -413,7 +413,6 @@
static int _maxPriority_offset;
static int _destroyed_offset;
static int _daemon_offset;
- static int _vmAllowSuspension_offset;
static int _nthreads_offset;
static int _ngroups_offset;
@@ -439,8 +438,6 @@
static bool is_destroyed(oop java_thread_group);
// Daemon
static bool is_daemon(oop java_thread_group);
- // vmAllowSuspension
- static bool is_vmAllowSuspension(oop java_thread_group);
// Debugging
friend class JavaClasses;
};
--- a/hotspot/src/share/vm/classfile/vmSymbols.hpp Tue Jun 21 09:19:53 2016 +0200
+++ b/hotspot/src/share/vm/classfile/vmSymbols.hpp Tue Jun 21 12:09:36 2016 +0200
@@ -354,7 +354,6 @@
template(groups_name, "groups") \
template(maxPriority_name, "maxPriority") \
template(destroyed_name, "destroyed") \
- template(vmAllowSuspension_name, "vmAllowSuspension") \
template(nthreads_name, "nthreads") \
template(ngroups_name, "ngroups") \
template(shutdown_method_name, "shutdown") \