diff src/share/vm/runtime/vmStructs.cpp @ 2386:083f13976b51

6535709: interrupt of wait()ing thread isn't triggerring InterruptedException - test intwait3 Summary: only clear the interrupt state if we will report that it was set Reviewed-by: dcubed, alanb, phh, coleenp, dice
author dholmes
date Mon, 21 Mar 2011 22:16:19 -0400
parents 850b2295a494
children 006b3750a4d4
line wrap: on
line diff
--- a/src/share/vm/runtime/vmStructs.cpp	Fri Mar 18 13:28:33 2011 -0700
+++ b/src/share/vm/runtime/vmStructs.cpp	Mon Mar 21 22:16:19 2011 -0400
@@ -840,7 +840,7 @@
   /* OSThread */                                                                                                                     \
   /************/                                                                                                                     \
                                                                                                                                      \
-  nonstatic_field(OSThread,                    _interrupted,                                  jint)                                  \
+  volatile_nonstatic_field(OSThread,           _interrupted,                                  jint)                                  \
                                                                                                                                      \
   /************************/                                                                                                         \
   /* OopMap and OopMapSet */                                                                                                         \