1.1 --- a/src/share/vm/runtime/osThread.hpp Fri Mar 18 13:28:33 2011 -0700 1.2 +++ b/src/share/vm/runtime/osThread.hpp Mon Mar 21 22:16:19 2011 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -65,7 +65,7 @@ 1.11 OSThreadStartFunc _start_proc; // Thread start routine 1.12 void* _start_parm; // Thread start routine parameter 1.13 volatile ThreadState _state; // Thread state *hint* 1.14 - jint _interrupted; // Thread.isInterrupted state 1.15 + volatile jint _interrupted; // Thread.isInterrupted state 1.16 1.17 // Note: _interrupted must be jint, so that Java intrinsics can access it. 1.18 // The value stored there must be either 0 or 1. It must be possible 1.19 @@ -89,7 +89,7 @@ 1.20 void* start_parm() const { return _start_parm; } 1.21 void set_start_parm(void* start_parm) { _start_parm = start_parm; } 1.22 1.23 - bool interrupted() const { return _interrupted != 0; } 1.24 + volatile bool interrupted() const { return _interrupted != 0; } 1.25 void set_interrupted(bool z) { _interrupted = z ? 1 : 0; } 1.26 1.27 // Printing