Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuppressWarnings(removal) against Thread.resume(),Thread.suspend() #489

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions src/tests/gov/nasa/jpf/test/vm/threads/SuspendResumeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void run(){
}
}

@SuppressWarnings("removal") // Thread.suspend()
@Test
public void testBasicSuspendDeadlock(){
if (verifyDeadlock("+cg.threads.break_yield")) {
Expand All @@ -61,7 +62,8 @@ public void testBasicSuspendDeadlock(){
//t1.resume();
}
}


@SuppressWarnings("removal") // Thread.suspend(), Thread.resume()
@Test
public void testBasicSuspendResume(){
if (verifyNoPropertyViolation("+cg.threads.break_yield")) {
Expand Down Expand Up @@ -106,7 +108,8 @@ public synchronized void run(){
System.out.println("t2 terminating");
}
}


@SuppressWarnings("removal") // Thread.suspend()
@Test
public void testLockholderSuspendDeadlock(){

Expand Down Expand Up @@ -144,6 +147,7 @@ public synchronized void run(){
}
}

@SuppressWarnings("removal") // Thread.suspend()
@Test
public void testWaitingSuspendNotifyDeadlock(){
if (verifyDeadlock("+cg.threads.break_yield")) {
Expand All @@ -166,7 +170,8 @@ public void testWaitingSuspendNotifyDeadlock(){
}
}
}


@SuppressWarnings("removal") // Thread.suspend(), Thread.resume()
@Test
public void testWaitingSuspendNotifyResume(){
if (verifyNoPropertyViolation("+cg.threads.break_yield")) {
Expand Down Expand Up @@ -220,7 +225,8 @@ public void run(){
System.out.println("t4 terminating");
}
}


@SuppressWarnings("removal") // Thread.suspend()
@Test
public void testBlockSuspendUnblockDeadlock(){
if (verifyDeadlock("+cg.threads.break_yield")) {
Expand All @@ -245,7 +251,7 @@ public void testBlockSuspendUnblockDeadlock(){
}
}


@SuppressWarnings("removal") // Thread.suspend(), Thread.resume()
@Test
public void testBlockSuspendUnblockResume(){
if (verifyNoPropertyViolation("+cg.threads.break_yield")) {
Expand Down
Loading