View Issue Details

IDProjectCategoryView StatusLast Update
0005775CentOS-6java-1.6.0-openjdkpublic2012-06-14 11:23
Reporterstevencn76 
PriorityimmediateSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformx64OSCentOSOS Version6
Product Version6.0 
Target VersionFixed in Version 
Summary0005775: In CentOS 6 x64, Java Thread.sleep()/Object.wait() will be influenced while changing OS time.
DescriptionIn CentOS6 x64, Java Thread.sleep()/Object.wait() will be influenced while changing OS time. If I called Thread.sleep(10000) and changed OS time back 30 seconds, the sleep method would return result in 40 seconds.
This problem does not appear in CentOS5 and CentOS6 x32.
Steps To ReproduceRun following java program, then change OS time during it's running. You can find the thread will have slept longer than 10 seconds.

public class Test {
    public static void main(String args[]) {
        System.out.println(System.currentTimeMillion();
        try {
            Thread.sleep(10000);
        } catch (Exception e){}
        System.out.println(System.currentTimeMillion();
    }
}
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2012-06-14 11:23 stevencn76 New Issue