OpenHFT / Java-Thread-Affinity

Bind a java thread to a given core
http://chronicle.software/products/thread-affinity/
Apache License 2.0
1.77k stars 356 forks source link

Fix TeamCity ARM build #105

Open JerryShea opened 1 year ago

JerryShea commented 1 year ago

Appears to be an issue with compilation of the native affinity code on ARM via g++. Have reached out to Roger for comment, pointers.

JerryShea commented 1 month ago

See TeamCity

tgd commented 1 month ago

@JerryShea - reproduced this and here's the g++ output:

net_openhft_ticker_impl_JNIClock.cpp:65:19: error: ‘rdtsc’ was not declared in this scope
   65 |    return (jlong) rdtsc();

AFAIK fails due to rdtsc not existing on ARM but Roger will have better detail.

The build can be fixed up with the following PR (tested locally on ARM at time of writing) https://github.com/OpenHFT/Java-Thread-Affinity/pull/128

@rogersimmons / @JerryShea do you know much about this JNIClock impl? No hits for it in the wider codebase

rogersimmons commented 1 month ago

Fix for 32 and 64 bit ARM now available in https://github.com/OpenHFT/Java-Thread-Affinity/pull/129