Call jhc_alloc_init and jhc_hs_init at exported function's enter.