compiler/6434117/TestNativeRevocation.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
closed Cdiff compiler/6434117/TestNativeRevocation.java
compiler/6434117/TestNativeRevocation.java
Print this page
*** 1,10 ****
/*
* @test
* @bug 6434117
* @summary debug info for native methods illegally references register
! * @run main/othervm -server -XX:+UseBiasedLocking TestNativeRevocation
*/
import java.util.*;
public class TestNativeRevocation {
--- 1,10 ----
/*
* @test
* @bug 6434117
* @summary debug info for native methods illegally references register
! * @run main/othervm -server -XX:+UseBiasedLocking -XX:BiasedLockingStartupDelay=50 TestNativeRevocation
*/
import java.util.*;
public class TestNativeRevocation {
*** 16,31 ****
volatile boolean cont = true;
public void run() {
while (cont) {
synchronized (queue) {
if (queue.size() > 0) {
! Throwable t = (Throwable) queue.remove(0);
synchronized (t) {
tmp = t.getMessage();
}
}
! while (queue.size() == 0) {
try {
queue.wait();
} catch (InterruptedException e) {
cont = false;
}
--- 16,34 ----
volatile boolean cont = true;
public void run() {
while (cont) {
synchronized (queue) {
if (queue.size() > 0) {
! // Remove element from the end of the list to keep
! // the list small (avoid elements shift to keep up
! // with queue.add(t)).
! Throwable t = (Throwable) queue.remove(queue.size()-1);
synchronized (t) {
tmp = t.getMessage();
}
}
! while (cont && queue.size() == 0) {
try {
queue.wait();
} catch (InterruptedException e) {
cont = false;
}
compiler/6434117/TestNativeRevocation.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File