equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
73 /** |
73 /** |
74 * Gets the singleton HotSpotJVMCIRuntime instance, initializing it if necessary |
74 * Gets the singleton HotSpotJVMCIRuntime instance, initializing it if necessary |
75 */ |
75 */ |
76 static Handle get_HotSpotJVMCIRuntime(TRAPS) { |
76 static Handle get_HotSpotJVMCIRuntime(TRAPS) { |
77 initialize_JVMCI(CHECK_(Handle())); |
77 initialize_JVMCI(CHECK_(Handle())); |
78 return Handle(JNIHandles::resolve_non_null(_HotSpotJVMCIRuntime_instance)); |
78 return Handle(THREAD, JNIHandles::resolve_non_null(_HotSpotJVMCIRuntime_instance)); |
79 } |
79 } |
80 |
80 |
81 static jobject get_HotSpotJVMCIRuntime_jobject(TRAPS) { |
81 static jobject get_HotSpotJVMCIRuntime_jobject(TRAPS) { |
82 initialize_JVMCI(CHECK_NULL); |
82 initialize_JVMCI(CHECK_NULL); |
83 assert(_HotSpotJVMCIRuntime_initialized, "must be"); |
83 assert(_HotSpotJVMCIRuntime_initialized, "must be"); |