Add BlockHound integration by bsideup · Pull Request #6692 · ReactiveX/RxJava

BlockHound is a tool for JVM to detect blocking calls in non-blocking threads.

It provides an SPI to integrate with, although it also comes with built-in RxJava2 integration. Since the introduction of SPI, we encourage JVM frameworks to provide an implementation of the SPI.
Netty project just added such integration, and even Project Reactor itself uses the SPI to integrate with BlockHound.
The main motivation is to be able to adjust the integration if the internals are changed, e.g. if RxJava decides to use some other marker interface for its threads.

BlockHound is Java 8+, but the SPI class is only loaded when BlockHound installs the integrations (using Java's ServiceLoader), hence there should be no problem with RxJava3's baseline (which is Java 6 at the moment). There are no Java 8 bytecodes in that class too, only JDK 8 class references. Netty is Java 6 too and it was fine for them.

A separate test source is used because BlockHound is global (since it is implemented as a Java agent) and cannot be disabled after the installation.