Sun Studio 12 Update 1: C++ User's Guide

A.2.160 -xpagesize_heap=n

Set the page size in memory for the heap.

A.2.160.1 Values

n can be 4k, 8K, 64K, 512K, 2M, 4M, 32M, 256M, 2G, 16G, or default. You must specify a valid page size for the target platform. If you do not specify a valid page size, the request is silently ignored at run-time.

Use the getpagesize(3C) command on the Solaris operating system to determine the number of bytes in a page. The Solaris operating system offers no guarantee that the page size request will be honored. You can use pmap(1) or meminfo(2) to determine page size of the target platform.


If you specify -xpagesize_heap=default, the Solaris operating system sets the page size.


The -xpagesize_heap option has no effect unless you use it at compile time and at link time.

See Also

Compiling with this option has the same effect as setting the LD_PRELOAD environment variable to with the equivalent options, or running the Solaris command ppgsz(1) with the equivalent options before running the program. See the Solaris man pages for details.