diff options
| author | Mikael Ohlson <mikael.ohlson@stericsson.com> | 2010-03-23 14:06:19 +0100 |
|---|---|---|
| committer | Christian Bejram <christian.bejram@stericsson.com> | 2010-06-15 09:07:42 +0000 |
| commit | 8ea8d24fcad0f0113615ef4dd331e4a127a66436 (patch) | |
| tree | 5dcdb40fb0dc1aab4cdb5d7984af124ac5ec3339 /vm/compiler/codegen/arm/CodegenDriver.c | |
| parent | 4e0beaf2dd92c4fee91e9204979a4b5feb2a14ab (diff) | |
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: Christian Bejram <christian.bejram@stericsson.com>
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions
