cleanup some comments

This commit is contained in:
Chris Plummer 2026-06-08 07:40:30 -07:00
parent afbc5c90b6
commit 295105a8ec
5 changed files with 5 additions and 17 deletions

View File

@ -125,7 +125,7 @@ public interface ClassType extends ReferenceType {
/** Perform method invocation with only the invoking thread resumed */
static final int INVOKE_SINGLE_THREADED = 0x1;
/** Perform perform the equivalent of ObjectReference.disableCollection() on
/** Perform the equivalent of ObjectReference.disableCollection() on
any ObjectReference returned, including any exception thrown. */
static final int INVOKE_DISABLE_COLLECTION = 0x4;

View File

@ -143,7 +143,7 @@ public interface ObjectReference extends Value {
static final int INVOKE_SINGLE_THREADED = 0x1;
/** Perform non-virtual method invocation */
static final int INVOKE_NONVIRTUAL = 0x2;
/** Perform perform the equivalent of ObjectReference.disableCollection() on
/** Perform the equivalent of ObjectReference.disableCollection() on
any ObjectReference returned, including any exception thrown. */
static final int INVOKE_DISABLE_COLLECTION = 0x4;

View File

@ -235,12 +235,8 @@ public final class ClassTypeImpl extends InvokableTypeImpl
vm.notifySuspend();
}
/*
* If there is a returned Object or an exception Object, make sure GC
* is disabled if requested.
*/
if ((options & INVOKE_DISABLE_COLLECTION) != 0) {
// Account for implicit disableCollection() done by the debug agent.
// Account for implicit disableCollection() done by JDWP.
if (ret.exception != null) {
ret.exception.incrementGcDisableCount();
} else {

View File

@ -126,12 +126,8 @@ abstract class InvokableTypeImpl extends ReferenceTypeImpl {
vm.notifySuspend();
}
/*
* If there is a returned Object or an exception Object, make sure GC
* is disabled if requested.
*/
if ((options & ClassType.INVOKE_DISABLE_COLLECTION) != 0) {
// Account for implicit disableCollection() done by the debug agent.
// Account for implicit disableCollection() done by JDWP.
if (ret.getException() != null) {
ret.getException().incrementGcDisableCount();
} else {

View File

@ -424,12 +424,8 @@ public class ObjectReferenceImpl extends ValueImpl
vm.notifySuspend();
}
/*
* If there is a returned Object or an exception Object, make sure GC
* is disabled if requested.
*/
if ((options & INVOKE_DISABLE_COLLECTION) != 0) {
// Account for implicit disableCollection() done by the debug agent.
// Account for implicit disableCollection() done by JDWP.
if (ret.exception != null) {
ret.exception.incrementGcDisableCount();
} else {