Approved by: vanilla (co-mentor)
constructors methods. PR: ports/59436 Submitted by: Cheng-Lung Sung <clsung@dragon2.net>