* AppDomain.java: Add allocate global functions.