@HotSpotIntrinsicCandidate and native prefixes (original) (raw)
Michael Rasmussen michael.rasmussen at zeroturnaround.com
Tue Mar 14 13:24:22 UTC 2017
- Previous message: RFR(M) 8176100: [REDO][REDO] G1 Needs pre barrier on dereference of weak JNI handles
- Next message: @HotSpotIntrinsicCandidate and native prefixes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
If you set a native prefix using SetNativeMethodPrefix, in order to wrap native methods. If those methods are annotated with @HotSpotIntrinsicCandidate you get a warning when running.
For instance for Thread::isInterrupted: Compiler intrinsic is defined for method [java.lang.Thread.isInterrupted(Z)Z], but the method is not annotated with @HotSpotIntrinsicCandidate. Method will not be inlined. Method [java.lang.Thread.$prefix$isInterrupted(Z)Z] is annotated with @HotSpotIntrinsicCandidate, but no compiler intrinsic is defined for the method.
Shouldn't the native prefix be taken into account for this?
Kind regards
Michael Rasmussen JRebel, ZeroTurnaround
- Previous message: RFR(M) 8176100: [REDO][REDO] G1 Needs pre barrier on dereference of weak JNI handles
- Next message: @HotSpotIntrinsicCandidate and native prefixes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]