JDK-8268094 : Some vmTestbase/nsk tests fail after ACC_STRICT/strictfp changes
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-02
  • Updated: 2021-06-11
  • Resolved: 2021-06-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b26Fixed
Related Reports
Relates :  
Description
Test: vmTestbase/nsk/jvmti/GetMethodModifiers/methmod001/TestDescription.java

/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+25-2238/src.full/open/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetMethodModifiers/methmod001.java:64: warning: [strictfp] as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not required
    strictfp float meth_2(float f1, float f2) {
                   ^
1 warning
result: Passed. Compilation successful

#section:main
----------messages:(4/258)----------
command: main -agentlib:methmod001 nsk.jvmti.GetMethodModifiers.methmod001
reason: User specified action: run main/othervm/native -agentlib:methmod001 nsk.jvmti.GetMethodModifiers.methmod001 
Mode: othervm [/othervm specified]
elapsed time (seconds): 11.749
----------configuration:(0/0)----------
----------System.out:(2/74)----------
"meth_2(FF)F" access flags expected: STRICT (0x800)
	       actual: (0x0)
----------System.err:(0/0)----------
Comments
Also: vmTestbase/nsk/jdi/VirtualMachine/redefineClasses/redefineclasses008/TestDescription.java vmTestbase/nsk/jdi/VirtualMachine/redefineClasses/redefineclasses007/TestDescription.java # ERROR: debugger FAILURE> ***UnsupportedOperationException is not thrown # ERROR: debugger FAILURE> *** while adding <strictfp> modifiers to 3 methods These modifiers no longer have any affect on classfiles and these testcases should must be deleted.
02-06-2021

Changeset: dc19baca Author: David Holmes <dholmes@openjdk.org> Date: 2021-06-02 12:23:56 +0000 URL: https://git.openjdk.java.net/jdk/commit/dc19baca3363a105a5cc1dbc02cbe3ea65e1209e
02-06-2021