EVALUATION
While I would agree the function calls to sysconf() is the correct method for a dynamic query within a program, from the standpoint of a makefile, prtconf is still acceptable for what is needed.
|
|
|
PUBLIC COMMENTS
Note also that prtconf output is not intended for parsing. A better interface for retrieving this information should be found or created.
|
|
|
PUBLIC COMMENTS
It looks like the right interface is
sysconf(_SC_PAGESIZE) * sysconf(_SC_PHYS_PAGES)
|
|
|
SUGGESTED FIX
Adjust the JDK7 code to use /usr/sbin/prtconf instead.
|
|
|
EVALUATION
This seems to be more of a build issue than an install issue.
|
|
|
SUGGESTED FIX
prtconf has been in /usr/sbin since at least Solaris 8, don't need to code up support for /etc/prtconf. Dependancy introduced in JDK 6 b82 (6412469)
jdk/make/common/shared/Platform.gmk
151c151
< MB_OF_MEMORY=$(shell /etc/prtconf | fgrep 'Memory size:' | expand | cut -d' ' -f3)
---
> > MB_OF_MEMORY=$(shell /usr/sbin/prtconf | fgrep 'Memory size:' | expand | cut -d' ' -f3)
|
|
|