comparison src/share/vm/code/nmethod.cpp @ 10031:ebb32c4589f3

Force GC to process graal_installed_code references during marking (GRAAL-257)
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Tue, 11 Jun 2013 19:59:52 +0200
parents 07e76b6fcc38
children 4a7dc38ae96b
comparison
equal deleted inserted replaced
9998:e85afceb39e7 10031:ebb32c4589f3
1859 // Check that the metadata embedded in the nmethod is alive 1859 // Check that the metadata embedded in the nmethod is alive
1860 CheckClass::do_check_class(is_alive, this); 1860 CheckClass::do_check_class(is_alive, this);
1861 #endif 1861 #endif
1862 } 1862 }
1863 1863
1864 1864 #ifdef GRAAL
1865 void nmethod::mark_graal_reference(OopClosure* f) {
1866 if (_graal_installed_code != NULL) {
1867 f->do_oop((oop*) &_graal_installed_code);
1868 }
1869 }
1870 #endif
1865 // Iterate over metadata calling this function. Used by RedefineClasses 1871 // Iterate over metadata calling this function. Used by RedefineClasses
1866 void nmethod::metadata_do(void f(Metadata*)) { 1872 void nmethod::metadata_do(void f(Metadata*)) {
1867 address low_boundary = verified_entry_point(); 1873 address low_boundary = verified_entry_point();
1868 if (is_not_entrant()) { 1874 if (is_not_entrant()) {
1869 low_boundary += NativeJump::instruction_size; 1875 low_boundary += NativeJump::instruction_size;