JDK-8029928 : pthread_key_t is casted down into int from long
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2013-12-10
  • Updated: 2016-03-17
  • Resolved: 2016-03-17
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
9Resolved
Related Reports
Relates :  
Description
In os::allocate_thread_local_storage (file os_bsd.cpp) we cast pthread_key_t down from "unsigned long" into "int".

We should use either "unsigned long" or at the least add a check to make sure that the value of pthread_key_t <= MAX(int)

Notice: pthread_key_t on Linux (os_linux.cpp) is (unsigned int), so this is only an issue on BSD.
Comments
ThreadLocalStorage was removed by JDK-8132510, so this is no longer an issue.
17-03-2016

ILW: P4 I: M, may cause a potential problem L: L W: H
11-12-2013