JDK-8032970 : Add stack size check methods to WhiteBox API
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8u20,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-01-28
  • Updated: 2018-07-26
  • Resolved: 2014-05-23
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 9
9 b17Fixed
Related Reports
Blocks :  
Description
VM JSR292 tests generate method handle call graphs which use a lot of stack. On embedded machines the stack size is limited, so we often get StackOverflowError. On the big machines we still want to generate big method handle graphs. The best solution to this seems to check remaining stack size on-the-fly in the tests. Since there is no way to query remaining stack size from VM, we propose adding such methods to WhiteBox API.

A diff with suggested changes is attached
Comments
HotSpot WhiteBox API methods for stack size querying a test for them.
14-05-2014