Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp Tue Jun 11 18:13:55 2013 +0200 +++ b/src/share/vm/code/nmethod.cpp Tue Jun 11 19:59:52 2013 +0200 @@ -1861,7 +1861,13 @@ #endif } - +#ifdef GRAAL +void nmethod::mark_graal_reference(OopClosure* f) { + if (_graal_installed_code != NULL) { + f->do_oop((oop*) &_graal_installed_code); + } +} +#endif // Iterate over metadata calling this function. Used by RedefineClasses void nmethod::metadata_do(void f(Metadata*)) { address low_boundary = verified_entry_point();