comparison src/share/vm/graal/graalCodeInstaller.cpp @ 3690:f8d7ab42c479

Call NMethodSweeper::possibly_sweep() before registering a method.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Wed, 23 Nov 2011 14:52:52 +0100
parents 7958ebb561b0
children 342a54994e05
comparison
equal deleted inserted replaced
3689:9878f53ebe09 3690:f8d7ab42c479
263 263
264 int stack_slots = (_frame_size / HeapWordSize) + 2; // conversion to words, need to add two slots for ret address and frame pointer 264 int stack_slots = (_frame_size / HeapWordSize) + 2; // conversion to words, need to add two slots for ret address and frame pointer
265 methodHandle method = getMethodFromHotSpotMethod(HotSpotTargetMethod::method(JNIHandles::resolve(target_method_obj))); 265 methodHandle method = getMethodFromHotSpotMethod(HotSpotTargetMethod::method(JNIHandles::resolve(target_method_obj)));
266 { 266 {
267 nm = GraalEnv::register_method(method, -1, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table, 267 nm = GraalEnv::register_method(method, -1, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table,
268 &_implicit_exception_table, GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, -1, false, false, install_code); 268 &_implicit_exception_table, GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, -1, true, false, install_code);
269 } 269 }
270 method->clear_queued_for_compilation(); 270 method->clear_queued_for_compilation();
271 } 271 }
272 272
273 // constructor used to create a stub 273 // constructor used to create a stub