1.1 --- a/src/share/vm/oops/constMethodOop.cpp Fri Jun 01 15:30:44 2012 -0700 1.2 +++ b/src/share/vm/oops/constMethodOop.cpp Wed Jun 06 14:33:43 2012 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2012, 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 @@ -53,6 +53,10 @@ 1.11 return align_object_size(header_size() + extra_words); 1.12 } 1.13 1.14 +methodOop constMethodOopDesc::method() const { 1.15 + return instanceKlass::cast(_constants->pool_holder())->method_with_idnum( 1.16 + _method_idnum); 1.17 + } 1.18 1.19 // linenumber table - note that length is unknown until decompression, 1.20 // see class CompressedLineNumberReadStream.