comparison src/share/vm/graal/graalCodeInstaller.cpp @ 3661:d24f157f2ba8

Use write barrier in JavaAccess. Fixed thread transition bug.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 17 Nov 2011 17:45:34 +0100
parents c805dfba251d
children 8c46cdb684d4
comparison
equal deleted inserted replaced
3660:c805dfba251d 3661:d24f157f2ba8
264 } 264 }
265 } 265 }
266 } 266 }
267 267
268 int stack_slots = (_frame_size / HeapWordSize) + 2; // conversion to words, need to add two slots for ret address and frame pointer 268 int stack_slots = (_frame_size / HeapWordSize) + 2; // conversion to words, need to add two slots for ret address and frame pointer
269 ThreadToNativeFromVM t((JavaThread*) Thread::current());
270 methodHandle method = getMethodFromHotSpotMethod(HotSpotTargetMethod::method(target_method)); 269 methodHandle method = getMethodFromHotSpotMethod(HotSpotTargetMethod::method(target_method));
271 nm = GraalEnv::register_method(method, -1, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table, 270 {
272 &_implicit_exception_table, GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, -1, false, false, install_code); 271 nm = GraalEnv::register_method(method, -1, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table,
272 &_implicit_exception_table, GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, -1, false, false, install_code);
273 }
273 method->clear_queued_for_compilation(); 274 method->clear_queued_for_compilation();
274 } 275 }
275 276
276 // constructor used to create a stub 277 // constructor used to create a stub
277 CodeInstaller::CodeInstaller(Handle target_method, jlong& id) { 278 CodeInstaller::CodeInstaller(Handle target_method, jlong& id) {