Update for new runtime api

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32241 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-20 08:32:54 +00:00
parent c7eeb1bb08
commit 0cb48d516b
7 changed files with 46 additions and 29 deletions

View file

@ -433,13 +433,14 @@ pop_pool_from_cache (struct autorelease_thread_vars *tv)
{
/* If anObject was an instance, c is it's class.
* If anObject was a class, c is its metaclass.
* Either way, get_imp() should get the appropriate pointer.
* Either way, we should get the appropriate pointer.
* If anObject is a proxy to something,
* the +instanceMethodForSelector: and -methodForSelector:
* methods may not exist, but get_imp() will return the
* methods may not exist, but this will return the
* address of the forwarding method if necessary.
*/
imps[hash] = get_imp(c, @selector(release));
imps[hash]
= class_getMethodImplementation(c, @selector(release));
classes[hash] = c;
}
(imps[hash])(anObject, @selector(release));