According to JDK-7198499 TraceTypeProfile flag had to become diagnostic (previously it was a develop flag).
However, it could be used as regular product flag even if diagnostic flags are explicitly locked:
jdk1.7.0_12/bin/java -XX:-UnlockDiagnosticVMOptions -XX:+TraceTypeProfile -version
java version "1.7.0_12-ea"
Java(TM) SE Runtime Environment (build 1.7.0_12-ea-b01)
Java HotSpot(TM) Server VM (build 24.0-b24, mixed mode)
jdk1.8.0/bin/java -XX:-UnlockDiagnosticVMOptions -XX:+TraceTypeProfile -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b59)
Java HotSpot(TM) Server VM (build 25.0-b03, mixed mode)
In examples above an error was expected, but not occurred.
Both hs24 and hs25 are affected.