mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
C: don't add native functions to GC roots
This commit is contained in:
parent
b5f64fd11a
commit
c80e9ee431
|
@ -119,6 +119,7 @@ public class NativePointerFinder {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String className = ((ValueType.Object) type).getClassName();
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user