Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/hotspot/share/runtime/javaCalls.cpp
40951 views
1
/*
2
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
3
* Copyright (c) 2021, Azul Systems, Inc. All rights reserved.
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
*
6
* This code is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License version 2 only, as
8
* published by the Free Software Foundation.
9
*
10
* This code is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
* version 2 for more details (a copy is included in the LICENSE file that
14
* accompanied this code).
15
*
16
* You should have received a copy of the GNU General Public License version
17
* 2 along with this work; if not, write to the Free Software Foundation,
18
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19
*
20
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21
* or visit www.oracle.com if you need additional information or have any
22
* questions.
23
*
24
*/
25
26
#include "precompiled.hpp"
27
#include "classfile/vmSymbols.hpp"
28
#include "code/nmethod.hpp"
29
#include "compiler/compilationPolicy.hpp"
30
#include "compiler/compileBroker.hpp"
31
#include "interpreter/interpreter.hpp"
32
#include "interpreter/linkResolver.hpp"
33
#if INCLUDE_JVMCI
34
#include "jvmci/jvmciJavaClasses.hpp"
35
#endif
36
#include "memory/universe.hpp"
37
#include "oops/method.inline.hpp"
38
#include "oops/oop.inline.hpp"
39
#include "prims/jniCheck.hpp"
40
#include "prims/jvmtiExport.hpp"
41
#include "runtime/handles.inline.hpp"
42
#include "runtime/interfaceSupport.inline.hpp"
43
#include "runtime/javaCalls.hpp"
44
#include "runtime/jniHandles.inline.hpp"
45
#include "runtime/mutexLocker.hpp"
46
#include "runtime/os.inline.hpp"
47
#include "runtime/sharedRuntime.hpp"
48
#include "runtime/signature.hpp"
49
#include "runtime/stubRoutines.hpp"
50
#include "runtime/thread.inline.hpp"
51
52
// -----------------------------------------------------
53
// Implementation of JavaCallWrapper
54
55
JavaCallWrapper::JavaCallWrapper(const methodHandle& callee_method, Handle receiver, JavaValue* result, TRAPS) {
56
JavaThread* thread = THREAD;
57
bool clear_pending_exception = true;
58
59
guarantee(thread->is_Java_thread(), "crucial check - the VM thread cannot and must not escape to Java code");
60
assert(!thread->owns_locks(), "must release all locks when leaving VM");
61
guarantee(thread->can_call_java(), "cannot make java calls from the native compiler");
62
_result = result;
63
64
// Allocate handle block for Java code. This must be done before we change thread_state to _thread_in_Java_or_stub,
65
// since it can potentially block.
66
JNIHandleBlock* new_handles = JNIHandleBlock::allocate_block(thread);
67
68
// After this, we are official in JavaCode. This needs to be done before we change any of the thread local
69
// info, since we cannot find oops before the new information is set up completely.
70
ThreadStateTransition::transition(thread, _thread_in_vm, _thread_in_Java);
71
72
// Make sure that we handle asynchronous stops and suspends _before_ we clear all thread state
73
// in JavaCallWrapper::JavaCallWrapper(). This way, we can decide if we need to do any pd actions
74
// to prepare for stop/suspend (flush register windows on sparcs, cache sp, or other state).
75
if (thread->has_special_runtime_exit_condition()) {
76
thread->handle_special_runtime_exit_condition();
77
if (HAS_PENDING_EXCEPTION) {
78
clear_pending_exception = false;
79
}
80
}
81
82
// Make sure to set the oop's after the thread transition - since we can block there. No one is GC'ing
83
// the JavaCallWrapper before the entry frame is on the stack.
84
_callee_method = callee_method();
85
_receiver = receiver();
86
87
#ifdef CHECK_UNHANDLED_OOPS
88
THREAD->allow_unhandled_oop(&_receiver);
89
#endif // CHECK_UNHANDLED_OOPS
90
91
_thread = thread;
92
_handles = _thread->active_handles(); // save previous handle block & Java frame linkage
93
94
// For the profiler, the last_Java_frame information in thread must always be in
95
// legal state. We have no last Java frame if last_Java_sp == NULL so
96
// the valid transition is to clear _last_Java_sp and then reset the rest of
97
// the (platform specific) state.
98
99
_anchor.copy(_thread->frame_anchor());
100
_thread->frame_anchor()->clear();
101
102
debug_only(_thread->inc_java_call_counter());
103
_thread->set_active_handles(new_handles); // install new handle block and reset Java frame linkage
104
105
assert (_thread->thread_state() != _thread_in_native, "cannot set native pc to NULL");
106
107
// clear any pending exception in thread (native calls start with no exception pending)
108
if(clear_pending_exception) {
109
_thread->clear_pending_exception();
110
}
111
112
MACOS_AARCH64_ONLY(_thread->enable_wx(WXExec));
113
}
114
115
116
JavaCallWrapper::~JavaCallWrapper() {
117
assert(_thread == JavaThread::current(), "must still be the same thread");
118
119
MACOS_AARCH64_ONLY(_thread->enable_wx(WXWrite));
120
121
// restore previous handle block & Java frame linkage
122
JNIHandleBlock *_old_handles = _thread->active_handles();
123
_thread->set_active_handles(_handles);
124
125
_thread->frame_anchor()->zap();
126
127
debug_only(_thread->dec_java_call_counter());
128
129
// Old thread-local info. has been restored. We are not back in the VM.
130
ThreadStateTransition::transition_from_java(_thread, _thread_in_vm);
131
132
// State has been restored now make the anchor frame visible for the profiler.
133
// Do this after the transition because this allows us to put an assert
134
// the Java->vm transition which checks to see that stack is not walkable
135
// on sparc/ia64 which will catch violations of the reseting of last_Java_frame
136
// invariants (i.e. _flags always cleared on return to Java)
137
138
_thread->frame_anchor()->copy(&_anchor);
139
140
// Release handles after we are marked as being inside the VM again, since this
141
// operation might block
142
JNIHandleBlock::release_block(_old_handles, _thread);
143
144
if (_thread->has_pending_exception() && _thread->has_last_Java_frame()) {
145
// If we get here, the Java code threw an exception that unwound a frame.
146
// It could be that the new frame anchor has not passed through the required
147
// StackWatermark barriers. Therefore, we process any such deferred unwind
148
// requests here.
149
StackWatermarkSet::after_unwind(_thread);
150
}
151
}
152
153
154
void JavaCallWrapper::oops_do(OopClosure* f) {
155
f->do_oop((oop*)&_receiver);
156
handles()->oops_do(f);
157
}
158
159
160
// Helper methods
161
static BasicType runtime_type_from(JavaValue* result) {
162
switch (result->get_type()) {
163
case T_BOOLEAN: // fall through
164
case T_CHAR : // fall through
165
case T_SHORT : // fall through
166
case T_INT : // fall through
167
#ifndef _LP64
168
case T_OBJECT : // fall through
169
case T_ARRAY : // fall through
170
#endif
171
case T_BYTE : // fall through
172
case T_VOID : return T_INT;
173
case T_LONG : return T_LONG;
174
case T_FLOAT : return T_FLOAT;
175
case T_DOUBLE : return T_DOUBLE;
176
#ifdef _LP64
177
case T_ARRAY : // fall through
178
case T_OBJECT: return T_OBJECT;
179
#endif
180
default:
181
ShouldNotReachHere();
182
return T_ILLEGAL;
183
}
184
}
185
186
// ============ Virtual calls ============
187
188
void JavaCalls::call_virtual(JavaValue* result, Klass* spec_klass, Symbol* name, Symbol* signature, JavaCallArguments* args, TRAPS) {
189
CallInfo callinfo;
190
Handle receiver = args->receiver();
191
Klass* recvrKlass = receiver.is_null() ? (Klass*)NULL : receiver->klass();
192
LinkInfo link_info(spec_klass, name, signature);
193
LinkResolver::resolve_virtual_call(
194
callinfo, receiver, recvrKlass, link_info, true, CHECK);
195
methodHandle method(THREAD, callinfo.selected_method());
196
assert(method.not_null(), "should have thrown exception");
197
198
// Invoke the method
199
JavaCalls::call(result, method, args, CHECK);
200
}
201
202
203
void JavaCalls::call_virtual(JavaValue* result, Handle receiver, Klass* spec_klass, Symbol* name, Symbol* signature, TRAPS) {
204
JavaCallArguments args(receiver);
205
call_virtual(result, spec_klass, name, signature, &args, CHECK);
206
}
207
208
209
void JavaCalls::call_virtual(JavaValue* result, Handle receiver, Klass* spec_klass, Symbol* name, Symbol* signature, Handle arg1, TRAPS) {
210
JavaCallArguments args(receiver);
211
args.push_oop(arg1);
212
call_virtual(result, spec_klass, name, signature, &args, CHECK);
213
}
214
215
216
217
void JavaCalls::call_virtual(JavaValue* result, Handle receiver, Klass* spec_klass, Symbol* name, Symbol* signature, Handle arg1, Handle arg2, TRAPS) {
218
JavaCallArguments args(receiver);
219
args.push_oop(arg1);
220
args.push_oop(arg2);
221
call_virtual(result, spec_klass, name, signature, &args, CHECK);
222
}
223
224
225
// ============ Special calls ============
226
227
void JavaCalls::call_special(JavaValue* result, Klass* klass, Symbol* name, Symbol* signature, JavaCallArguments* args, TRAPS) {
228
CallInfo callinfo;
229
LinkInfo link_info(klass, name, signature);
230
LinkResolver::resolve_special_call(callinfo, args->receiver(), link_info, CHECK);
231
methodHandle method(THREAD, callinfo.selected_method());
232
assert(method.not_null(), "should have thrown exception");
233
234
// Invoke the method
235
JavaCalls::call(result, method, args, CHECK);
236
}
237
238
239
void JavaCalls::call_special(JavaValue* result, Handle receiver, Klass* klass, Symbol* name, Symbol* signature, TRAPS) {
240
JavaCallArguments args(receiver);
241
call_special(result, klass, name, signature, &args, CHECK);
242
}
243
244
245
void JavaCalls::call_special(JavaValue* result, Handle receiver, Klass* klass, Symbol* name, Symbol* signature, Handle arg1, TRAPS) {
246
JavaCallArguments args(receiver);
247
args.push_oop(arg1);
248
call_special(result, klass, name, signature, &args, CHECK);
249
}
250
251
252
void JavaCalls::call_special(JavaValue* result, Handle receiver, Klass* klass, Symbol* name, Symbol* signature, Handle arg1, Handle arg2, TRAPS) {
253
JavaCallArguments args(receiver);
254
args.push_oop(arg1);
255
args.push_oop(arg2);
256
call_special(result, klass, name, signature, &args, CHECK);
257
}
258
259
260
// ============ Static calls ============
261
262
void JavaCalls::call_static(JavaValue* result, Klass* klass, Symbol* name, Symbol* signature, JavaCallArguments* args, TRAPS) {
263
CallInfo callinfo;
264
LinkInfo link_info(klass, name, signature);
265
LinkResolver::resolve_static_call(callinfo, link_info, true, CHECK);
266
methodHandle method(THREAD, callinfo.selected_method());
267
assert(method.not_null(), "should have thrown exception");
268
269
// Invoke the method
270
JavaCalls::call(result, method, args, CHECK);
271
}
272
273
274
void JavaCalls::call_static(JavaValue* result, Klass* klass, Symbol* name, Symbol* signature, TRAPS) {
275
JavaCallArguments args;
276
call_static(result, klass, name, signature, &args, CHECK);
277
}
278
279
280
void JavaCalls::call_static(JavaValue* result, Klass* klass, Symbol* name, Symbol* signature, Handle arg1, TRAPS) {
281
JavaCallArguments args(arg1);
282
call_static(result, klass, name, signature, &args, CHECK);
283
}
284
285
286
void JavaCalls::call_static(JavaValue* result, Klass* klass, Symbol* name, Symbol* signature, Handle arg1, Handle arg2, TRAPS) {
287
JavaCallArguments args;
288
args.push_oop(arg1);
289
args.push_oop(arg2);
290
call_static(result, klass, name, signature, &args, CHECK);
291
}
292
293
294
void JavaCalls::call_static(JavaValue* result, Klass* klass, Symbol* name, Symbol* signature, Handle arg1, Handle arg2, Handle arg3, TRAPS) {
295
JavaCallArguments args;
296
args.push_oop(arg1);
297
args.push_oop(arg2);
298
args.push_oop(arg3);
299
call_static(result, klass, name, signature, &args, CHECK);
300
}
301
302
// ============ allocate and initialize new object instance ============
303
304
Handle JavaCalls::construct_new_instance(InstanceKlass* klass, Symbol* constructor_signature, JavaCallArguments* args, TRAPS) {
305
klass->initialize(CHECK_NH); // Quick no-op if already initialized.
306
Handle obj = klass->allocate_instance_handle(CHECK_NH);
307
JavaValue void_result(T_VOID);
308
args->set_receiver(obj); // inserts <obj> as the first argument.
309
JavaCalls::call_special(&void_result, klass,
310
vmSymbols::object_initializer_name(),
311
constructor_signature, args, CHECK_NH);
312
// Already returned a Null Handle if any exception is pending.
313
return obj;
314
}
315
316
Handle JavaCalls::construct_new_instance(InstanceKlass* klass, Symbol* constructor_signature, TRAPS) {
317
JavaCallArguments args;
318
return JavaCalls::construct_new_instance(klass, constructor_signature, &args, THREAD);
319
}
320
321
Handle JavaCalls::construct_new_instance(InstanceKlass* klass, Symbol* constructor_signature, Handle arg1, TRAPS) {
322
JavaCallArguments args;
323
args.push_oop(arg1);
324
return JavaCalls::construct_new_instance(klass, constructor_signature, &args, THREAD);
325
}
326
327
Handle JavaCalls::construct_new_instance(InstanceKlass* klass, Symbol* constructor_signature, Handle arg1, Handle arg2, TRAPS) {
328
JavaCallArguments args;
329
args.push_oop(arg1);
330
args.push_oop(arg2);
331
return JavaCalls::construct_new_instance(klass, constructor_signature, &args, THREAD);
332
}
333
334
// -------------------------------------------------
335
// Implementation of JavaCalls (low level)
336
337
338
void JavaCalls::call(JavaValue* result, const methodHandle& method, JavaCallArguments* args, TRAPS) {
339
// Check if we need to wrap a potential OS exception handler around thread.
340
// This is used for e.g. Win32 structured exception handlers.
341
// Need to wrap each and every time, since there might be native code down the
342
// stack that has installed its own exception handlers.
343
os::os_exception_wrapper(call_helper, result, method, args, THREAD);
344
}
345
346
void JavaCalls::call_helper(JavaValue* result, const methodHandle& method, JavaCallArguments* args, TRAPS) {
347
348
JavaThread* thread = THREAD;
349
assert(method.not_null(), "must have a method to call");
350
assert(!SafepointSynchronize::is_at_safepoint(), "call to Java code during VM operation");
351
assert(!thread->handle_area()->no_handle_mark_active(), "cannot call out to Java here");
352
353
// Verify the arguments
354
if (JVMCI_ONLY(args->alternative_target().is_null() &&) (DEBUG_ONLY(true ||) CheckJNICalls)) {
355
args->verify(method, result->get_type());
356
}
357
// Ignore call if method is empty
358
if (JVMCI_ONLY(args->alternative_target().is_null() &&) method->is_empty_method()) {
359
assert(result->get_type() == T_VOID, "an empty method must return a void value");
360
return;
361
}
362
363
#ifdef ASSERT
364
{ InstanceKlass* holder = method->method_holder();
365
// A klass might not be initialized since JavaCall's might be used during the executing of
366
// the <clinit>. For example, a Thread.start might start executing on an object that is
367
// not fully initialized! (bad Java programming style)
368
assert(holder->is_linked(), "rewriting must have taken place");
369
}
370
#endif
371
372
CompilationPolicy::compile_if_required(method, CHECK);
373
374
// Since the call stub sets up like the interpreter we call the from_interpreted_entry
375
// so we can go compiled via a i2c. Otherwise initial entry method will always
376
// run interpreted.
377
address entry_point = method->from_interpreted_entry();
378
if (JvmtiExport::can_post_interpreter_events() && thread->is_interp_only_mode()) {
379
entry_point = method->interpreter_entry();
380
}
381
382
// Figure out if the result value is an oop or not (Note: This is a different value
383
// than result_type. result_type will be T_INT of oops. (it is about size)
384
BasicType result_type = runtime_type_from(result);
385
bool oop_result_flag = is_reference_type(result->get_type());
386
387
// Find receiver
388
Handle receiver = (!method->is_static()) ? args->receiver() : Handle();
389
390
// When we reenter Java, we need to reenable the reserved/yellow zone which
391
// might already be disabled when we are in VM.
392
thread->stack_overflow_state()->reguard_stack_if_needed();
393
394
// Check that there are shadow pages available before changing thread state
395
// to Java. Calculate current_stack_pointer here to make sure
396
// stack_shadow_pages_available() and bang_stack_shadow_pages() use the same sp.
397
address sp = os::current_stack_pointer();
398
if (!os::stack_shadow_pages_available(THREAD, method, sp)) {
399
// Throw stack overflow exception with preinitialized exception.
400
Exceptions::throw_stack_overflow_exception(THREAD, __FILE__, __LINE__, method);
401
return;
402
} else {
403
// Touch pages checked if the OS needs them to be touched to be mapped.
404
os::map_stack_shadow_pages(sp);
405
}
406
407
// do call
408
{ JavaCallWrapper link(method, receiver, result, CHECK);
409
{ HandleMark hm(thread); // HandleMark used by HandleMarkCleaner
410
411
// NOTE: if we move the computation of the result_val_address inside
412
// the call to call_stub, the optimizer produces wrong code.
413
intptr_t* result_val_address = (intptr_t*)(result->get_value_addr());
414
intptr_t* parameter_address = args->parameters();
415
#if INCLUDE_JVMCI
416
// Gets the alternative target (if any) that should be called
417
Handle alternative_target = args->alternative_target();
418
if (!alternative_target.is_null()) {
419
// Must extract verified entry point from HotSpotNmethod after VM to Java
420
// transition in JavaCallWrapper constructor so that it is safe with
421
// respect to nmethod sweeping.
422
address verified_entry_point = (address) HotSpotJVMCI::InstalledCode::entryPoint(NULL, alternative_target());
423
if (verified_entry_point != NULL) {
424
thread->set_jvmci_alternate_call_target(verified_entry_point);
425
entry_point = method->adapter()->get_i2c_entry();
426
}
427
}
428
#endif
429
StubRoutines::call_stub()(
430
(address)&link,
431
// (intptr_t*)&(result->_value), // see NOTE above (compiler problem)
432
result_val_address, // see NOTE above (compiler problem)
433
result_type,
434
method(),
435
entry_point,
436
parameter_address,
437
args->size_of_parameters(),
438
CHECK
439
);
440
441
result = link.result(); // circumvent MS C++ 5.0 compiler bug (result is clobbered across call)
442
// Preserve oop return value across possible gc points
443
if (oop_result_flag) {
444
thread->set_vm_result(result->get_oop());
445
}
446
}
447
} // Exit JavaCallWrapper (can block - potential return oop must be preserved)
448
449
// Check if a thread stop or suspend should be executed
450
// The following assert was not realistic. Thread.stop can set that bit at any moment.
451
//assert(!thread->has_special_runtime_exit_condition(), "no async. exceptions should be installed");
452
453
// Restore possible oop return
454
if (oop_result_flag) {
455
result->set_oop(thread->vm_result());
456
thread->set_vm_result(NULL);
457
}
458
}
459
460
461
//--------------------------------------------------------------------------------------
462
// Implementation of JavaCallArguments
463
464
inline bool is_value_state_indirect_oop(uint state) {
465
assert(state != JavaCallArguments::value_state_oop,
466
"Checking for handles after removal");
467
assert(state < JavaCallArguments::value_state_limit,
468
"Invalid value state %u", state);
469
return state != JavaCallArguments::value_state_primitive;
470
}
471
472
inline oop resolve_indirect_oop(intptr_t value, uint state) {
473
switch (state) {
474
case JavaCallArguments::value_state_handle:
475
{
476
oop* ptr = reinterpret_cast<oop*>(value);
477
return Handle::raw_resolve(ptr);
478
}
479
480
case JavaCallArguments::value_state_jobject:
481
{
482
jobject obj = reinterpret_cast<jobject>(value);
483
return JNIHandles::resolve(obj);
484
}
485
486
default:
487
ShouldNotReachHere();
488
return NULL;
489
}
490
}
491
492
intptr_t* JavaCallArguments::parameters() {
493
// First convert all handles to oops
494
for(int i = 0; i < _size; i++) {
495
uint state = _value_state[i];
496
assert(state != value_state_oop, "Multiple handle conversions");
497
if (is_value_state_indirect_oop(state)) {
498
oop obj = resolve_indirect_oop(_value[i], state);
499
_value[i] = cast_from_oop<intptr_t>(obj);
500
_value_state[i] = value_state_oop;
501
}
502
}
503
// Return argument vector
504
return _value;
505
}
506
507
508
class SignatureChekker : public SignatureIterator {
509
private:
510
int _pos;
511
BasicType _return_type;
512
u_char* _value_state;
513
intptr_t* _value;
514
515
public:
516
SignatureChekker(Symbol* signature,
517
BasicType return_type,
518
bool is_static,
519
u_char* value_state,
520
intptr_t* value) :
521
SignatureIterator(signature),
522
_pos(0),
523
_return_type(return_type),
524
_value_state(value_state),
525
_value(value)
526
{
527
if (!is_static) {
528
check_value(true); // Receiver must be an oop
529
}
530
do_parameters_on(this);
531
check_return_type(return_type);
532
}
533
534
private:
535
void check_value(bool is_reference) {
536
uint state = _value_state[_pos++];
537
if (is_reference) {
538
guarantee(is_value_state_indirect_oop(state),
539
"signature does not match pushed arguments: %u at %d",
540
state, _pos - 1);
541
} else {
542
guarantee(state == JavaCallArguments::value_state_primitive,
543
"signature does not match pushed arguments: %u at %d",
544
state, _pos - 1);
545
}
546
}
547
548
void check_return_type(BasicType t) {
549
guarantee(t == _return_type, "return type does not match");
550
}
551
552
void check_single_word() {
553
check_value(false);
554
}
555
556
void check_double_word() {
557
check_value(false);
558
check_value(false);
559
}
560
561
void check_reference() {
562
intptr_t v = _value[_pos];
563
if (v != 0) {
564
// v is a "handle" referring to an oop, cast to integral type.
565
// There shouldn't be any handles in very low memory.
566
guarantee((size_t)v >= (size_t)os::vm_page_size(),
567
"Bad JNI oop argument %d: " PTR_FORMAT, _pos, v);
568
// Verify the pointee.
569
oop vv = resolve_indirect_oop(v, _value_state[_pos]);
570
guarantee(oopDesc::is_oop_or_null(vv, true),
571
"Bad JNI oop argument %d: " PTR_FORMAT " -> " PTR_FORMAT,
572
_pos, v, p2i(vv));
573
}
574
575
check_value(true); // Verify value state.
576
}
577
578
friend class SignatureIterator; // so do_parameters_on can call do_type
579
void do_type(BasicType type) {
580
switch (type) {
581
case T_BYTE:
582
case T_BOOLEAN:
583
case T_CHAR:
584
case T_SHORT:
585
case T_INT:
586
case T_FLOAT: // this one also
587
check_single_word(); break;
588
case T_LONG:
589
case T_DOUBLE:
590
check_double_word(); break;
591
case T_ARRAY:
592
case T_OBJECT:
593
check_reference(); break;
594
default:
595
ShouldNotReachHere();
596
}
597
}
598
};
599
600
601
void JavaCallArguments::verify(const methodHandle& method, BasicType return_type) {
602
guarantee(method->size_of_parameters() == size_of_parameters(), "wrong no. of arguments pushed");
603
604
// Treat T_OBJECT and T_ARRAY as the same
605
if (is_reference_type(return_type)) return_type = T_OBJECT;
606
607
// Check that oop information is correct
608
Symbol* signature = method->signature();
609
610
SignatureChekker sc(signature,
611
return_type,
612
method->is_static(),
613
_value_state,
614
_value);
615
}
616
617