1.1 --- a/src/share/vm/oops/methodOop.cpp Wed Feb 01 07:59:01 2012 -0800 1.2 +++ b/src/share/vm/oops/methodOop.cpp Wed Feb 01 16:57:08 2012 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 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 @@ -596,6 +596,11 @@ 1.11 clear_code(); 1.12 } 1.13 1.14 +address methodOopDesc::critical_native_function() { 1.15 + methodHandle mh(this); 1.16 + return NativeLookup::lookup_critical_entry(mh); 1.17 +} 1.18 + 1.19 1.20 void methodOopDesc::set_signature_handler(address handler) { 1.21 address* signature_handler = signature_handler_addr();