Skip to content

Commit

Permalink
8297295: Remove ThreadGroup.allowThreadSuspension
Browse files Browse the repository at this point in the history
Reviewed-by: jpai, smarks, chegar, darcy
  • Loading branch information
Alan Bateman committed Dec 8, 2022
1 parent 175e3d3 commit d35e840
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
17 changes: 0 additions & 17 deletions src/java.base/share/classes/java/lang/ThreadGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -700,23 +700,6 @@ public void uncaughtException(Thread t, Throwable e) {
}
}

/**
* Does nothing.
*
* @return false
*
* @param b ignored
*
* @deprecated This method was originally intended for controlling suspension
* in low memory conditions. It was never specified.
*
* @since 1.1
*/
@Deprecated(since="1.2", forRemoval=true)
public boolean allowThreadSuspension(boolean b) {
return false;
}

/**
* Returns a string representation of this Thread group.
*
Expand Down
7 changes: 0 additions & 7 deletions test/jdk/java/lang/ThreadGroup/BasicTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -750,13 +750,6 @@ public void testStop() {
assertThrows(UnsupportedOperationException.class, () -> group.stop());
}

@Test
public void testAllowThreadSuspension() {
ThreadGroup group = new ThreadGroup("foo");
assertFalse(group.allowThreadSuspension(false));
assertFalse(group.allowThreadSuspension(true));
}

@Test
public void testNull1() {
assertThrows(NullPointerException.class,
Expand Down

1 comment on commit d35e840

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.