mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
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:
parent
b75ed4ce34
commit
1a3b0cca61
3 changed files with 16 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue