make sure that currentThread == null when entering gc
updates for new integer-gmp