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 <email@example.com>
Cc: Alexander Shishkin <firstname.lastname@example.org>
Cc: Ben Gainey <email@example.com>
Cc: Gustavo Luiz Duarte <firstname.lastname@example.org>
Cc: Namhyung Kim <email@example.com>
Cc: Peter Zijlstra <firstname.lastname@example.org>
Cc: Stephane Eranian <email@example.com>
Link: http://firstname.lastname@example.orgSigned-off-by: Arnaldo Carvalho de Melo <email@example.com>