comparison src/share/vm/prims/nativeLookup.cpp @ 6988:2cb439954abf

Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 19 Nov 2012 15:36:13 +0100
parents e522a00b91aa 070d523b96a7
children 5fc51c1ecdeb
comparison
equal deleted inserted replaced
6963:dd0dd0321e2a 6988:2cb439954abf
353 // we have a name for a wrapping method 353 // we have a name for a wrapping method
354 int wrapper_name_len = (int)strlen(wrapper_name); 354 int wrapper_name_len = (int)strlen(wrapper_name);
355 TempNewSymbol wrapper_symbol = SymbolTable::probe(wrapper_name, wrapper_name_len); 355 TempNewSymbol wrapper_symbol = SymbolTable::probe(wrapper_name, wrapper_name_len);
356 if (wrapper_symbol != NULL) { 356 if (wrapper_symbol != NULL) {
357 KlassHandle kh(method->method_holder()); 357 KlassHandle kh(method->method_holder());
358 Method* wrapper_method = Klass::cast(kh())->lookup_method(wrapper_symbol, 358 Method* wrapper_method = kh()->lookup_method(wrapper_symbol,
359 method->signature()); 359 method->signature());
360 if (wrapper_method != NULL && !wrapper_method->is_native()) { 360 if (wrapper_method != NULL && !wrapper_method->is_native()) {
361 // we found a wrapper method, use its native entry 361 // we found a wrapper method, use its native entry
362 method->set_is_prefixed_native(); 362 method->set_is_prefixed_native();
363 return lookup_entry(wrapper_method, in_base_library, THREAD); 363 return lookup_entry(wrapper_method, in_base_library, THREAD);