Mercurial > hg > graal-jvmci-8
diff src/share/vm/jvmci/jvmciCodeInstaller.cpp @ 22026:ab879bff09ab
Track and set has_unsafe_access flag
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Fri, 19 Jun 2015 12:35:38 +0200 |
parents | 861108f5408e |
children | a27d4ef9b3a3 |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciCodeInstaller.cpp Fri Jun 19 11:10:15 2015 +0200 +++ b/src/share/vm/jvmci/jvmciCodeInstaller.cpp Fri Jun 19 12:35:38 2015 +0200 @@ -446,6 +446,7 @@ methodHandle method = getMethodFromHotSpotMethod(HotSpotCompiledNmethod::method(compiled_code)); jint entry_bci = HotSpotCompiledNmethod::entryBCI(compiled_code); jint id = HotSpotCompiledNmethod::id(compiled_code); + jboolean has_unsafe_access = HotSpotCompiledNmethod::hasUnsafeAccess(compiled_code); JVMCIEnv* env = (JVMCIEnv*) (address) HotSpotCompiledNmethod::jvmciEnv(compiled_code); if (id == -1) { // Make sure a valid compile_id is associated with every compile @@ -454,7 +455,7 @@ result = JVMCIEnv::register_method(method, nm, entry_bci, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table, JVMCICompiler::instance(), _debug_recorder, _dependencies, env, id, - false, _has_wide_vector, installed_code, compiled_code, speculation_log); + (bool) has_unsafe_access, _has_wide_vector, installed_code, compiled_code, speculation_log); cb = nm; }