The Compiled Method Load Record (cmlr) is JDK specific interface to
access JVM stack info. This makes the jvmti agent code not compile under
another jdk, which does not support that.
Separating jvmti cmlr check into special feature check, and adding
HAVE_JVMTI_CMLR macro to indicate that.
Mark cmlr code in jvmti/libjvmti.c with HAVE_JVMTI_CMLR, so we can
compile it on system without cmlr support.
This change makes the jvmti compile with java-1.8.0-ibm package. It's
without the line numbers support, but the rest works.
Adding NO_JVMTI_CMLR compile variable for testing.
Signed-off-by: Jiri Olsa <firstname.lastname@example.org>
Cc: Alexander Shishkin <email@example.com>
Cc: Ben Gainey <firstname.lastname@example.org>
Cc: Gustavo Luiz Duarte <email@example.com>
Cc: Namhyung Kim <firstname.lastname@example.org>
Cc: Peter Zijlstra <email@example.com>
Cc: Stephane Eranian <firstname.lastname@example.org>
Link: http://email@example.comSigned-off-by: Arnaldo Carvalho de Melo <firstname.lastname@example.org>