From 724d8de9ae1fdde447b0344e3b5013b34ebde080 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Wed, 25 May 2011 21:35:21 +0000 Subject: [PATCH] call the 64 bit cpuid, even if we dont use it yet --- core/java/src/net/i2p/util/NativeBigInteger.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/util/NativeBigInteger.java b/core/java/src/net/i2p/util/NativeBigInteger.java index 09b2422df..ef3844ecf 100644 --- a/core/java/src/net/i2p/util/NativeBigInteger.java +++ b/core/java/src/net/i2p/util/NativeBigInteger.java @@ -157,8 +157,16 @@ public class NativeBigInteger extends BigInteger { */ boolean is64 = "64".equals(System.getProperty("sun.arch.data.model")) || System.getProperty("os.arch").contains("64"); - if (is64) + if (is64) { + // Test the 64 bit libjcpuid, even though we don't use it yet + try { + CPUInfo c = CPUID.getInfo(); + _cpuModel = c.getCPUModelString(); + } catch (UnknownCPUException e) { + // log? + } return JBIGI_OPTIMIZATION_ATHLON64; + } try { CPUInfo c = CPUID.getInfo(); -- GitLab