aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/CompilerCodegen.h
diff options
context:
space:
mode:
authorMikael Ohlson <mikael.ohlson@stericsson.com>2010-03-23 14:06:19 +0100
committerChristian Bejram <christian.bejram@stericsson.com>2010-06-15 09:07:42 +0000
commit8ea8d24fcad0f0113615ef4dd331e4a127a66436 (patch)
tree5dcdb40fb0dc1aab4cdb5d7984af124ac5ec3339 /vm/compiler/codegen/CompilerCodegen.h
parent4e0beaf2dd92c4fee91e9204979a4b5feb2a14ab (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/CompilerCodegen.h')
0 files changed, 0 insertions, 0 deletions