C: don't add native functions to GC roots

This commit is contained in:
Alexey Andreev 2019-07-26 16:59:58 +03:00
parent b5f64fd11a
commit c80e9ee431

View File

@ -119,6 +119,7 @@ public class NativePointerFinder {
return false;
}
String className = ((ValueType.Object) type).getClassName();
return characteristics.isStructure(className) || className.equals(Address.class.getName());
return characteristics.isStructure(className) || className.equals(Address.class.getName())
|| characteristics.isFunction(className);
}
}