added pinning support for jvm threads