8131326: Enable CheckIntrinsics in all types of builds

Enable CheckIntrinsics flag in all builds; make check for orphan methods available only in debug builds.

Reviewed-by: kvn
This commit is contained in:
Zoltan Majo 2015-07-16 15:02:12 +02:00
parent b75ed4ce34
commit 1a3b0cca61
3 changed files with 16 additions and 4 deletions

View file

@ -658,7 +658,10 @@
// annotation. If CheckIntrinsics is enabled, the VM performs the following
// checks when a class C is loaded: (1) all intrinsics defined by the VM for
// class C are present in the loaded class file and are marked;
// (2) an intrinsic is defined by the VM for all marked methods of class C.
// (2) an intrinsic is defined by the VM for all marked methods of class C;
// (3) check for orphan methods in class C (i.e., methods for which the VM
// declares an intrinsic but that are not declared for the loaded class C.
// Check (3) is available only in debug builds.
//
// If a mismatch is detected for a method, the VM behaves differently depending
// on the type of build. A fastdebug build exits and reports an error on a mismatch.