android_getCpuFeatures 在 Honeycomb 上崩溃
我有一个早期调用 android_getCpuFeatures 的 NDK 项目。这在我测试的所有手机上都运行良好,但在 Honeycomb 平板电脑上,它只是崩溃(Logcat 没有太多信息,除了发生了严重崩溃)。
这是 r5b NDK,使用新的、首选的方式来获取 CPU 功能。
I have an NDK project that calls android_getCpuFeatures early on. This works fine on all phones I tested, but on a Honeycomb tablet, it simply crashes (the Logcat doesn't have much information, other than that there was a hard crash).
This is with the r5b NDK, using the new, preferred way of getting the CPU features function in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这不是答案,但您可以使用源代码进行调查(cpu-features.c,cpu-features.h)。
android_getCpuFeatures 只是检查从 /proc/cpuinfo 获取的字符串,这在每个 Android 内核上似乎都可以。
I think it's not the answer, but you can investigate it with the source code (cpu-features.c, cpu-features.h).
android_getCpuFeatures just checks the strings that is taken from /proc/cpuinfo, it seems ok on every Android kernel.