Mercurial > hg > truffle
annotate agent/make/start-debug-server-windbg64.bat @ 17716:cdb71841f4bc
6498581: ThreadInterruptTest3 produces wrong output on Windows
Summary: There is race condition between os::interrupt and os::is_interrupted on Windows. In JVM_Sleep(Thread.sleep), check if thread gets interrupted, it may see interrupted but not really interrupted so cause spurious waking up (early return from sleep). Fix by checking if interrupt event really gets set thus prevent false return. For intrinsic of _isInterrupted, on Windows, go fastpath only on bit not set.
Reviewed-by: acorn, kvn
Contributed-by: david.holmes@oracle.com, yumin.qi@oracle.com
author | minqi |
---|---|
date | Wed, 26 Feb 2014 15:20:41 -0800 |
parents | c18cbe5936b8 |
children |
rev | line source |
---|---|
0 | 1 @echo off |
2 REM | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
3 REM Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. |
0 | 4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 REM | |
6 REM This code is free software; you can redistribute it and/or modify it | |
7 REM under the terms of the GNU General Public License version 2 only, as | |
8 REM published by the Free Software Foundation. | |
9 REM | |
10 REM This code is distributed in the hope that it will be useful, but WITHOUT | |
11 REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 REM version 2 for more details (a copy is included in the LICENSE file that | |
14 REM accompanied this code). | |
15 REM | |
16 REM You should have received a copy of the GNU General Public License version | |
17 REM 2 along with this work; if not, write to the Free Software Foundation, | |
18 REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
19 REM | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
20 REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
21 REM or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
22 REM questions. |
0 | 23 REM |
24 REM | |
25 | |
26 call saenv64.bat | |
27 | |
28 REM check for .\sa.jar, if it does not exist | |
29 REM assume that we are in build configuration. | |
30 | |
31 if not exist .\sa.jar goto IN_BUILD_CONF | |
32 set SA_CLASSPATH=.\sa.jar | |
33 goto EXEC_CMD | |
34 | |
35 :IN_BUILD_CONF | |
36 set SA_CLASSPATH=..\build\classes | |
37 | |
38 :EXEC_CMD | |
39 %SA_JAVA% -classpath %SA_CLASSPATH% -Djava.rmi.server.codebase=file:/%SA_CLASSPATH% -Djava.security.policy=grantAll.policy -Djava.library.path=%SA_LIBPATH% %OPTIONS% sun.jvm.hotspot.DebugServer %1 %2 %3 %4 %5 %6 %7 %8 %9 |