Message12155
Stefan wrote:
...there is somewhere the line in the gc module:
private static short gcFlags = 0;
change it to
private static short gcFlags = DONT_TRAVERSE_BY_REFLECTION;
Yes, that stops the warnings. But now the tests fail (of course) because the expected collection does not take place. If we disable traversal by reflection as a whole, then we must skip the test.
We could do this either on all JVMs or on all those from Java 9 onwards. But that can't be rational, since if this is necessary on Java 8 it doesn't suddenly stop being necessary on Java 9.
Here I risk displaying my ignorance of the use case. The best course seems to me to disable it (by default) on all JVMs as shown, and raise an issue about the feature producing warnings with Java 9+. Those who enable reflective traversal (by talking to the gc module), and then get messages that mention reflection and the gc module, should be able to put 2 and 2 together, unlike those for whom it comes out of the blue. |
|
Date |
User |
Action |
Args |
2018-10-22 07:20:17 | jeff.allen | set | messageid: <1540192817.57.0.788709270274.issue2656@psf.upfronthosting.co.za> |
2018-10-22 07:20:17 | jeff.allen | set | recipients:
+ jeff.allen, stefan.richthofer |
2018-10-22 07:20:17 | jeff.allen | link | issue2656 messages |
2018-10-22 07:20:16 | jeff.allen | create | |
|