The flag handling code in the VM class does not know about size_t. This causes problems now when a bunch of flags has been changed to size_t. The VM.Flag.getValue() returns NULL for size_t flags.
The result is failures like:
WARNING: Hotspot VM version 1.9.0-internal-fastdebug-20150324154453.mgerdin.hs-gc-8075511-gcc-b00 does not match with SA version 1.9.0-internal-fastdebug-20150324154453.mgerdin.hs-gc-8075511-gcc-b00. You may see unexpected results.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:502)
at sun.tools.jmap.JMap.runTool(JMap.java:201)
at sun.tools.jmap.JMap.main(JMap.java:130)
Caused by: java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:556)
at java.lang.Long.parseLong(Long.java:718)
at sun.jvm.hotspot.tools.HeapSummary.getFlagValue(HeapSummary.java:259)
at sun.jvm.hotspot.tools.HeapSummary.run(HeapSummary.java:70)
at sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:49)
... 6 more
java.lang.RuntimeException: Test FAILED jmap exits with non zero exit code 1
at JMapHeapConfigTest.main(JMapHeapConfigTest.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:502)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Thread.java:745)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Test FAILED jmap exits with non zero exit code 1