Mercurial > hg > truffle
comparison src/share/vm/prims/nativeLookup.cpp @ 6854:fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
Summary: Change makefiles so that targets and parameters can be overridden by alternate makefiles.
Reviewed-by: dholmes, coleenp
author | jprovino |
---|---|
date | Wed, 10 Oct 2012 14:35:58 -0400 |
parents | da91efe96a93 |
children | 18fb7da42534 |
comparison
equal
deleted
inserted
replaced
6830:81e878c53615 | 6854:fb19af007ffc |
---|---|
326 // Check if there are any JVM TI prefixes which have been applied to the native method name. | 326 // Check if there are any JVM TI prefixes which have been applied to the native method name. |
327 // If any are found, remove them before attemping the look up of the | 327 // If any are found, remove them before attemping the look up of the |
328 // native implementation again. | 328 // native implementation again. |
329 // See SetNativeMethodPrefix in the JVM TI Spec for more details. | 329 // See SetNativeMethodPrefix in the JVM TI Spec for more details. |
330 address NativeLookup::lookup_entry_prefixed(methodHandle method, bool& in_base_library, TRAPS) { | 330 address NativeLookup::lookup_entry_prefixed(methodHandle method, bool& in_base_library, TRAPS) { |
331 #if INCLUDE_JVMTI | |
331 ResourceMark rm(THREAD); | 332 ResourceMark rm(THREAD); |
332 | 333 |
333 int prefix_count; | 334 int prefix_count; |
334 char** prefixes = JvmtiExport::get_all_native_method_prefixes(&prefix_count); | 335 char** prefixes = JvmtiExport::get_all_native_method_prefixes(&prefix_count); |
335 char* in_name = method->name()->as_C_string(); | 336 char* in_name = method->name()->as_C_string(); |
356 method->set_is_prefixed_native(); | 357 method->set_is_prefixed_native(); |
357 return lookup_entry(wrapper_method, in_base_library, THREAD); | 358 return lookup_entry(wrapper_method, in_base_library, THREAD); |
358 } | 359 } |
359 } | 360 } |
360 } | 361 } |
362 #endif // INCLUDE_JVMTI | |
361 return NULL; | 363 return NULL; |
362 } | 364 } |
363 | 365 |
364 address NativeLookup::lookup_base(methodHandle method, bool& in_base_library, TRAPS) { | 366 address NativeLookup::lookup_base(methodHandle method, bool& in_base_library, TRAPS) { |
365 address entry = NULL; | 367 address entry = NULL; |