Commit 8ea8d24f authored by Mikael Ohlson's avatar Mikael Ohlson Committed by Christian Bejram
Browse files

New implementation for java.lang.Runtime's availableProcessors().



This patch adds a native implementation for availableProcessors(),
replacing the hardcoded "always return 1" implementation.

It uses sysconf(_SC_NPROCESSORS_ONLN) to get the number of online
processors.

Signed-off-by: default avatarChristian Bejram <christian.bejram@stericsson.com>
parent 4e0beaf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment