constructor: public -> private
alloc -> constructor
alloc -> constructor
alloc -> constructor
fix checkstackusage