Changed memory allocation flow, Added mpm detection.
Changed memory allocation flow, Added mpm detection.

git-svn-id: 8ef0d459ce317472ddb76c27b19a0e9b8c1df63d@17 31ed2c5f-a439-ea96-03ff-1d9a14941ac2

yamac/smalllight