1.1 --- a/src/share/vm/code/nmethod.hpp Wed Feb 02 18:38:40 2011 -0500 1.2 +++ b/src/share/vm/code/nmethod.hpp Wed Feb 02 14:38:01 2011 -0500 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 @@ -696,10 +696,11 @@ 1.11 class nmethodLocker : public StackObj { 1.12 nmethod* _nm; 1.13 1.14 + public: 1.15 + 1.16 static void lock_nmethod(nmethod* nm); // note: nm can be NULL 1.17 static void unlock_nmethod(nmethod* nm); // (ditto) 1.18 1.19 - public: 1.20 nmethodLocker(address pc); // derive nm from pc 1.21 nmethodLocker(nmethod *nm) { _nm = nm; lock_nmethod(_nm); } 1.22 nmethodLocker() { _nm = NULL; }