18 * |
18 * |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
|
23 */ |
|
24 |
|
25 /* |
|
26 * This file has been modified by Loongson Technology in 2015. These |
|
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 * available on the same license terms set forth above. |
23 */ |
29 */ |
24 |
30 |
25 #include "precompiled.hpp" |
31 #include "precompiled.hpp" |
26 #include "classfile/metadataOnStackMark.hpp" |
32 #include "classfile/metadataOnStackMark.hpp" |
27 #include "classfile/systemDictionary.hpp" |
33 #include "classfile/systemDictionary.hpp" |
102 |
108 |
103 if (access_flags.is_native()) { |
109 if (access_flags.is_native()) { |
104 clear_native_function(); |
110 clear_native_function(); |
105 set_signature_handler(NULL); |
111 set_signature_handler(NULL); |
106 } |
112 } |
107 |
113 #ifdef MIPS64 |
|
114 set_num_of_requests(0); |
|
115 set_decay_counter(0); |
|
116 #endif |
108 NOT_PRODUCT(set_compiled_invocation_count(0);) |
117 NOT_PRODUCT(set_compiled_invocation_count(0);) |
109 } |
118 } |
110 |
119 |
111 // Release Method*. The nmethod will be gone when we get here because |
120 // Release Method*. The nmethod will be gone when we get here because |
112 // we've walked the code cache. |
121 // we've walked the code cache. |
836 _from_interpreted_entry = NULL; |
845 _from_interpreted_entry = NULL; |
837 if (is_native()) { |
846 if (is_native()) { |
838 *native_function_addr() = NULL; |
847 *native_function_addr() = NULL; |
839 set_signature_handler(NULL); |
848 set_signature_handler(NULL); |
840 } |
849 } |
|
850 #ifdef MIPS64 |
|
851 set_num_of_requests(0); |
|
852 set_decay_counter(0); |
|
853 #endif |
841 NOT_PRODUCT(set_compiled_invocation_count(0);) |
854 NOT_PRODUCT(set_compiled_invocation_count(0);) |
842 _adapter = NULL; |
855 _adapter = NULL; |
843 _from_compiled_entry = NULL; |
856 _from_compiled_entry = NULL; |
844 |
857 |
845 // In case of DumpSharedSpaces, _method_data should always be NULL. |
858 // In case of DumpSharedSpaces, _method_data should always be NULL. |