8314389: AttachListener::pd_set_flag obsolete
Reviewed-by: cjplummer, mdoerr, sspitsyn
This commit is contained in:
parent
891c3f4cca
commit
5058854b86
@ -579,11 +579,6 @@ void AttachListener::pd_data_dump() {
|
|||||||
os::signal_notify(SIGQUIT);
|
os::signal_notify(SIGQUIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
jint AttachListener::pd_set_flag(AttachOperation* op, outputStream* out) {
|
|
||||||
out->print_cr("flag '%s' cannot be changed", op->arg(0));
|
|
||||||
return JNI_ERR;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AttachListener::pd_detachall() {
|
void AttachListener::pd_detachall() {
|
||||||
// Cleanup server socket to detach clients.
|
// Cleanup server socket to detach clients.
|
||||||
listener_cleanup();
|
listener_cleanup();
|
||||||
|
@ -542,11 +542,6 @@ void AttachListener::pd_data_dump() {
|
|||||||
os::signal_notify(SIGQUIT);
|
os::signal_notify(SIGQUIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
jint AttachListener::pd_set_flag(AttachOperation* op, outputStream* out) {
|
|
||||||
out->print_cr("flag '%s' cannot be changed", op->arg(0));
|
|
||||||
return JNI_ERR;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AttachListener::pd_detachall() {
|
void AttachListener::pd_detachall() {
|
||||||
// do nothing for now
|
// do nothing for now
|
||||||
}
|
}
|
||||||
|
@ -547,11 +547,6 @@ void AttachListener::pd_data_dump() {
|
|||||||
os::signal_notify(SIGQUIT);
|
os::signal_notify(SIGQUIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
jint AttachListener::pd_set_flag(AttachOperation* op, outputStream* out) {
|
|
||||||
out->print_cr("flag '%s' cannot be changed", op->arg(0));
|
|
||||||
return JNI_ERR;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AttachListener::pd_detachall() {
|
void AttachListener::pd_detachall() {
|
||||||
// do nothing for now
|
// do nothing for now
|
||||||
}
|
}
|
||||||
|
@ -391,11 +391,6 @@ void AttachListener::pd_data_dump() {
|
|||||||
os::signal_notify(SIGBREAK);
|
os::signal_notify(SIGBREAK);
|
||||||
}
|
}
|
||||||
|
|
||||||
jint AttachListener::pd_set_flag(AttachOperation* op, outputStream* out) {
|
|
||||||
out->print_cr("flag '%s' cannot be changed", op->arg(0));
|
|
||||||
return JNI_ERR;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AttachListener::pd_detachall() {
|
void AttachListener::pd_detachall() {
|
||||||
// do nothing for now
|
// do nothing for now
|
||||||
}
|
}
|
||||||
|
@ -319,13 +319,10 @@ static jint set_flag(AttachOperation* op, outputStream* out) {
|
|||||||
int ret = WriteableFlags::set_flag(op->arg(0), op->arg(1), JVMFlagOrigin::ATTACH_ON_DEMAND, err_msg);
|
int ret = WriteableFlags::set_flag(op->arg(0), op->arg(1), JVMFlagOrigin::ATTACH_ON_DEMAND, err_msg);
|
||||||
if (ret != JVMFlag::SUCCESS) {
|
if (ret != JVMFlag::SUCCESS) {
|
||||||
if (ret == JVMFlag::NON_WRITABLE) {
|
if (ret == JVMFlag::NON_WRITABLE) {
|
||||||
// if the flag is not manageable try to change it through
|
out->print_cr("flag '%s' cannot be changed", op->arg(0));
|
||||||
// the platform dependent implementation
|
|
||||||
return AttachListener::pd_set_flag(op, out);
|
|
||||||
} else {
|
} else {
|
||||||
out->print_cr("%s", err_msg.buffer());
|
out->print_cr("%s", err_msg.buffer());
|
||||||
}
|
}
|
||||||
|
|
||||||
return JNI_ERR;
|
return JNI_ERR;
|
||||||
}
|
}
|
||||||
return JNI_OK;
|
return JNI_OK;
|
||||||
|
@ -121,9 +121,6 @@ class AttachListener: AllStatic {
|
|||||||
// platform specific initialization
|
// platform specific initialization
|
||||||
static int pd_init();
|
static int pd_init();
|
||||||
|
|
||||||
// platform specific flag change
|
|
||||||
static jint pd_set_flag(AttachOperation* op, outputStream* out);
|
|
||||||
|
|
||||||
// platform specific detachall
|
// platform specific detachall
|
||||||
static void pd_detachall();
|
static void pd_detachall();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user